diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/eboard/files/eboard-1.1.1-ovflfix.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/eboard/files/eboard-1.1.1-ovflfix.patch')
-rw-r--r-- | games-board/eboard/files/eboard-1.1.1-ovflfix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-board/eboard/files/eboard-1.1.1-ovflfix.patch b/games-board/eboard/files/eboard-1.1.1-ovflfix.patch new file mode 100644 index 000000000000..b09c4dba880f --- /dev/null +++ b/games-board/eboard/files/eboard-1.1.1-ovflfix.patch @@ -0,0 +1,22 @@ +--- a/proto_xboard.cc 2010-11-03 16:42:15.000000000 +0100 ++++ b/proto_xboard.cc 2010-11-03 16:43:14.000000000 +0100 +@@ -1084,7 +1084,7 @@ + snprintf(EngineCommandLine,512,"crafty bookpath=%s logpath=%s tbpath=%s", + BookPath,LogPath,LogPath); + if (!global.env.Home.empty()) +- snprintf(EngineRunDir,512,"%s/.eboard/craftylog",global.env.Home.c_str()); ++ snprintf(EngineRunDir, sizeof(EngineRunDir), "%s/.eboard/craftylog", global.env.Home.c_str()); + else + strcpy(EngineRunDir,"/tmp"); + +--- a/util.cc 2010-11-03 16:42:24.000000000 +0100 ++++ b/util.cc 2010-11-03 16:43:42.000000000 +0100 +@@ -783,7 +783,7 @@ + int i,n; + char cmd[1024]; + +- n = snprintf(tmpfile,1024,"/tmp/eb%d-%s",(int) getpid(), origfile); ++ n = snprintf(tmpfile, sizeof(tmpfile), "/tmp/eb%d-%s", (int) getpid(), origfile); + + if (n >= 1024) { + failure = 1; |