Had a "msgbuf" where I should have had a "msgbuf[0]" (thanks, James!). stable-1.0
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Mar 2008 05:14:35 +0000
branchstable-1.0
changeset 931 e66ed41c66e6
parent 929 f2a9da5cc943
child 935 99e85221ab05
Had a "msgbuf" where I should have had a "msgbuf[0]" (thanks, James!).
CHANGELOG
CREDITS
platform/win32.c
--- a/CHANGELOG	Sun Mar 09 02:44:50 2008 +0000
+++ b/CHANGELOG	Tue Mar 11 05:14:35 2008 +0000
@@ -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
--- a/CREDITS	Sun Mar 09 02:44:50 2008 +0000
+++ b/CREDITS	Tue Mar 11 05:14:35 2008 +0000
@@ -78,6 +78,7 @@
 
 Bug fixes:
     Jörg Walter
+    James Haley
 
 Windows .rc file:
     Dennis Schridde
--- a/platform/win32.c	Sun Mar 09 02:44:50 2008 +0000
+++ b/platform/win32.c	Tue Mar 11 05:14:35 2008 +0000
@@ -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'))