public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-action/d2x/files: d2x-0.2.5-ovflw.patch
@ 2012-09-01 18:42 Alfredo Tupone (tupone)
  0 siblings, 0 replies; only message in thread
From: Alfredo Tupone (tupone) @ 2012-09-01 18:42 UTC (permalink / raw
  To: gentoo-commits

tupone      12/09/01 18:42:37

  Added:                d2x-0.2.5-ovflw.patch
  Log:
  Fix some overflow. Bug #431800
  
  (Portage version: 2.1.11.9/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  games-action/d2x/files/d2x-0.2.5-ovflw.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/d2x/files/d2x-0.2.5-ovflw.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/d2x/files/d2x-0.2.5-ovflw.patch?rev=1.1&content-type=text/plain

Index: d2x-0.2.5-ovflw.patch
===================================================================
--- main/multi.h.old	2012-09-01 14:33:13.668620792 +0200
+++ main/multi.h	2012-09-01 14:33:25.043385055 +0200
@@ -120,7 +120,7 @@
 
 #define MAX_NET_CREATE_OBJECTS  40
 
-#define MAX_MULTI_MESSAGE_LEN   120
+#define MAX_MULTI_MESSAGE_LEN   138
 
 // Exported functions
 
--- main/ai.c.old	2012-09-01 15:02:36.754081633 +0200
+++ main/ai.c	2012-09-01 20:16:07.846989673 +0200
@@ -1885,8 +1885,11 @@
 	fread( &Last_gate_time, sizeof(fix), 1, fp );
 	fread( &Gate_interval, sizeof(fix), 1, fp );
 	fread( &Boss_dying_start_time, sizeof(fix), 1, fp );
-	fread( &Boss_dying, sizeof(int), 1, fp );
-	fread( &Boss_dying_sound_playing, sizeof(int), 1, fp );
+	int temp;
+	fread( &temp, sizeof(int), 1, fp );
+	Boss_dying = temp;
+	fread( &temp, sizeof(int), 1, fp );
+	Boss_dying_sound_playing = temp;
 	fread( &Boss_hit_time, sizeof(fix), 1, fp );
 	// -- MK, 10/21/95, unused! -- fread( &Boss_been_hit, sizeof(int), 1, fp );
 





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

only message in thread, other threads:[~2012-09-01 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-01 18:42 [gentoo-commits] gentoo-x86 commit in games-action/d2x/files: d2x-0.2.5-ovflw.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