winedbg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this patch fixes a regression recently introduced in string printing
it ensures that we don't loop for ever after we encountered the
terminating '\0' char
A+
Name:          wd_xs
ChangeLog:     actually exit loop on '\0' while printing a string
License:       X11
GenDate:       2002/11/12 21:24:27 UTC
ModifiedFiles: programs/winedbg/memory.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/programs/winedbg/memory.c,v
retrieving revision 1.2
diff -u -u -r1.2 memory.c
--- programs/winedbg/memory.c	25 Oct 2002 19:01:32 -0000	1.2
+++ programs/winedbg/memory.c	12 Nov 2002 21:12:41 -0000
@@ -358,6 +358,7 @@
 	ach[l] = '\0';  /* protect from displaying junk */
         l = strlen(ach);
         DEBUG_OutputA(chnl, ach, l);
+        if (l < sizeof(ach) - 1) break;
         lin += l;
     }
     return len - i; /* number of actually written chars */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux