Revert "CStringInput: - don't use sizeof pointer"

This reverts commit a805a274c7.

I have the correct version of this in my tree.


Origin commit data
------------------
Commit: 7097abe420
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)
This commit is contained in:
Stefan Seyfried
2013-06-16 17:41:26 +02:00
parent 89788cbc75
commit 15bb1b1312

View File

@@ -208,7 +208,7 @@ void CStringInput::NormalKeyPressed(const neutrino_msg_t key)
}
paintChar(selected);
}else{
snprintf(value, size,"%s",tmp_value.c_str());
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
}
}
}
@@ -288,7 +288,7 @@ void CStringInput::keyUpPressed()
if( (lower_bound == -1 || upper_bound == -1) || (current_value > 0 && current_value > lower_bound && current_value < upper_bound) ){
paintChar(selected);
}else{
snprintf(value, size,"%s",tmp_value.c_str());
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
}
}
@@ -308,7 +308,7 @@ void CStringInput::keyDownPressed()
if( (lower_bound == -1 || upper_bound == -1) || (current_value > 0 && current_value > lower_bound && current_value < upper_bound) ){
paintChar(selected);
}else{
snprintf(value, size,"%s",tmp_value.c_str());
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
}
}