Date: Tue, 28 Mar 2017 16:16:30 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437135 - head/games/hyperrogue/files Message-ID: <201703281616.v2SGGUps065807@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Mar 28 16:16:30 2017 New Revision: 437135 URL: https://svnweb.freebsd.org/changeset/ports/437135 Log: - Fix build on CURRENT Added: head/games/hyperrogue/files/patch-graph.cpp (contents, props changed) Added: head/games/hyperrogue/files/patch-graph.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/hyperrogue/files/patch-graph.cpp Tue Mar 28 16:16:30 2017 (r437135) @@ -0,0 +1,11 @@ +--- graph.cpp.orig 2016-08-26 16:36:03 UTC ++++ graph.cpp +@@ -5595,7 +5595,7 @@ bool loadMusicInfo(string dir) { + for(int i=0; i<size(dir); i++) if(dir[i] == '/' || dir[i] == '\\') + dir2 = dir.substr(0, i+1); + char buf[1000]; +- while(fgets(buf, 800, f) > 0) { ++ while(fgets(buf, 800, f) != NULL) { + for(int i=0; buf[i]; i++) if(buf[i] == 10 || buf[i] == 13) buf[i] = 0; + if(buf[0] == '[' && buf[3] == ']') { + int id = (buf[1] - '0') * 10 + buf[2] - '0';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703281616.v2SGGUps065807>