public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-board/eboard/files: eboard-1.1.1-ovflfix.patch
@ 2010-11-03 15:53 Alfredo Tupone (tupone)
  0 siblings, 0 replies; only message in thread
From: Alfredo Tupone (tupone) @ 2010-11-03 15:53 UTC (permalink / raw
  To: gentoo-commits

tupone      10/11/03 15:53:03

  Added:                eboard-1.1.1-ovflfix.patch
  Log:
  Fix overflow. Bug #339004
  
  (Portage version: 2.1.9.24/cvs/Linux i686)

Revision  Changes    Path
1.1                  games-board/eboard/files/eboard-1.1.1-ovflfix.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/eboard/files/eboard-1.1.1-ovflfix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/eboard/files/eboard-1.1.1-ovflfix.patch?rev=1.1&content-type=text/plain

Index: eboard-1.1.1-ovflfix.patch
===================================================================
--- proto_xboard.cc.old	2010-11-03 16:42:15.000000000 +0100
+++ 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");
 
--- util.cc.old	2010-11-03 16:42:24.000000000 +0100
+++ 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;






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-03 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 15:53 [gentoo-commits] gentoo-x86 commit in games-board/eboard/files: eboard-1.1.1-ovflfix.patch Alfredo Tupone (tupone)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox