don't use sizeof(pointer), it is not useful :-)

Origin commit data
------------------
Branch: ni/coolstream
Commit: a7dfc9757a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-28 (Tue, 28 May 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-05-28 14:27:51 +02:00
parent 0dcd4dc7c4
commit 46398344c7
2 changed files with 4 additions and 4 deletions

View File

@@ -226,7 +226,7 @@ void CStringInput::NormalKeyPressed(const neutrino_msg_t key)
else
paintChar(selected);
}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
paintChar(selected);
}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
paintChar(selected);
}else{
snprintf(value, sizeof(value),"%s",tmp_value.c_str());
snprintf(value, size + 1, "%s", tmp_value.c_str());
}
}

View File

@@ -226,7 +226,7 @@ bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10])
long value;
int pos = 0;
memset(bitInfo, 0, sizeof(bitInfo));
memset(bitInfo, 0, sizeof(int[10]));
FILE *fd = fopen("/proc/bus/bitstream", "rt");