mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
fix the warns that actually matter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user