freebsd-ports/emulators/fceux/files/patch-fceux-server_server.cpp
2017-02-26 13:51:27 +00:00

11 lines
361 B
C++

--- fceux-server/server.cpp.orig 2017-02-26 13:33:11 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);