Whoops, this should probably be chopping the string instead of turning stable-1.0
authorRyan C. Gordon <icculus@icculus.org>
Mon, 26 Mar 2007 06:34:55 +0000
branchstable-1.0
changeset 860 d4dac47eb63c
parent 778 851766195e09
child 870 95afd7667adf
Whoops, this should probably be chopping the string instead of turning the first newline it sees into a space character...
CHANGELOG
platform/win32.c
--- a/CHANGELOG	Sat Sep 23 10:49:10 2006 +0000
+++ b/CHANGELOG	Mon Mar 26 06:34:55 2007 +0000
@@ -4,6 +4,8 @@
 
 -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
 
+03262007 - Fixed minor cosmetic issue in Windows error messages where it would
+           leave whitespace and newlines at the end of the string.
 09232006 - Fixed typo in doxygen comment.
 03232006 - Added -fvisibility for gcc4 (http://gcc.gnu.org/wiki/Visibility)
 01012006 - Added physfs.rc (thanks, Dennis!). Changed my email address.
--- a/platform/win32.c	Sat Sep 23 10:49:10 2006 +0000
+++ b/platform/win32.c	Mon Mar 26 06:34:55 2007 +0000
@@ -97,7 +97,7 @@
     {
         if ((*ptr == '\n') || (*ptr == '\r'))
         {
-            *ptr = ' ';
+            *ptr = '\0';
             break;
         } /* if */
     } /* for */