mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
don't use sizeof(pointer), it is not useful :-)
This commit is contained in:
@@ -226,7 +226,7 @@ void CStringInput::NormalKeyPressed(const neutrino_msg_t key)
|
|||||||
else
|
else
|
||||||
paintChar(selected);
|
paintChar(selected);
|
||||||
}else{
|
}else{
|
||||||
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
|
snprintf(value, size + 1, "%s", tmp_value.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -322,7 +322,7 @@ void CStringInput::keyUpPressed()
|
|||||||
else
|
else
|
||||||
paintChar(selected);
|
paintChar(selected);
|
||||||
}else{
|
}else{
|
||||||
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
|
snprintf(value, size + 1, "%s", tmp_value.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,7 +358,7 @@ void CStringInput::keyDownPressed()
|
|||||||
else
|
else
|
||||||
paintChar(selected);
|
paintChar(selected);
|
||||||
}else{
|
}else{
|
||||||
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
|
snprintf(value, size + 1, "%s", tmp_value.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -226,7 +226,7 @@ bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10])
|
|||||||
long value;
|
long value;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
||||||
memset(bitInfo, 0, sizeof(bitInfo));
|
memset(bitInfo, 0, sizeof(int[10]));
|
||||||
|
|
||||||
FILE *fd = fopen("/proc/bus/bitstream", "rt");
|
FILE *fd = fopen("/proc/bus/bitstream", "rt");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user