r932 - in branches/stable-1.0: . platform

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Mar 11 01:14:35 EDT 2008


Author: icculus
Date: 2008-03-11 01:14:35 -0400 (Tue, 11 Mar 2008)
New Revision: 932

Modified:
   branches/stable-1.0/CHANGELOG
   branches/stable-1.0/CREDITS
   branches/stable-1.0/platform/win32.c
Log:
Had a "msgbuf" where I should have had a "msgbuf[0]" (thanks, James!).


Modified: branches/stable-1.0/CHANGELOG
===================================================================
--- branches/stable-1.0/CHANGELOG	2008-03-09 02:44:50 UTC (rev 931)
+++ branches/stable-1.0/CHANGELOG	2008-03-11 05:14:35 UTC (rev 932)
@@ -4,6 +4,7 @@
 
 -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
 
+03112008 - Fixed wrong array index in Windows platform layer (thanks, James!).
 03082008 - Fixed compiler warnings in Windows platform layer (thanks, Dennis!).
 02202008 - Various archiver swap and compare functions now check if they are
            swapping/comparing an item against itself, for efficiency and

Modified: branches/stable-1.0/CREDITS
===================================================================
--- branches/stable-1.0/CREDITS	2008-03-09 02:44:50 UTC (rev 931)
+++ branches/stable-1.0/CREDITS	2008-03-11 05:14:35 UTC (rev 932)
@@ -78,6 +78,7 @@
 
 Bug fixes:
     Jörg Walter
+    James Haley
 
 Windows .rc file:
     Dennis Schridde

Modified: branches/stable-1.0/platform/win32.c
===================================================================
--- branches/stable-1.0/platform/win32.c	2008-03-09 02:44:50 UTC (rev 931)
+++ branches/stable-1.0/platform/win32.c	2008-03-11 05:14:35 UTC (rev 932)
@@ -90,9 +90,9 @@
     );
 
     if (rc == 0)
-        msgbuf = '\0';  /* oh well. */
+        msgbuf[0] = '\0';  /* oh well. Empty string. */
 
-        /* chop off newlines. */
+    /* chop off newlines... */
     for (ptr = msgbuf; *ptr; ptr++)
     {
         if ((*ptr == '\n') || (*ptr == '\r'))




More information about the physfs-commits mailing list