svn commit: r437135 - head/games/hyperrogue/files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Mar 28 16:16:32 UTC 2017
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';
More information about the svn-ports-head
mailing list