fix the warns that actually matter

This commit is contained in:
DarthArgus
2015-10-27 18:02:01 -05:00
parent 9e6f200300
commit f0160fe7ad
4 changed files with 45 additions and 43 deletions
@@ -59,9 +59,10 @@ void ServerConsole::run()
char inBuf[1024] = {"\0"};
while(! feof(stdin))
{
fread(inBuf, 1024, 1, stdin);
input += inBuf;
memset(inBuf, 0, sizeof(inBuf));
if (fread(inBuf, 1024, 1, stdin)) {
input += inBuf;
memset(inBuf, 0, sizeof(inBuf));
}
}
if(input.length() > 0)