blob: 817c3c6a6e8207c965aa044cb2e1b312df34ec6d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- fceux-server/server.cpp.orig 2012-11-02 13:41:36 UTC
+++ fceux-server/server.cpp
@@ -114,7 +114,7 @@ int LoadConfigFile(char *fn)
if(fp=fopen(fn,"rb"))
{
char buf[256];
- while(fgets(buf, 256, fp) > 0)
+ while(fgets(buf, 256, fp))
{
if(!strncasecmp(buf,"maxclients",strlen("maxclients")))
sscanf(buf,"%*s %d",&ServerConfig.MaxClients);
|