server fix

Eric Pouech eric.pouech at wanadoo.fr
Wed Feb 19 15:05:01 CST 2003


change log says it all
A+
-- 
Eric Pouech
-------------- next part --------------
Name:          svr_con
ChangeLog:     fixed read-overflow spotted by valgrind
License:       X11
GenDate:       2003/02/19 21:03:51 UTC
ModifiedFiles: server/console.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/server/console.c,v
retrieving revision 1.47
diff -u -u -r1.47 console.c
--- server/console.c	19 Feb 2003 00:33:33 -0000	1.47
+++ server/console.c	19 Feb 2003 20:27:30 -0000
@@ -612,7 +612,7 @@
         WCHAR *new_title = mem_alloc( len + sizeof(WCHAR) );
         if (new_title)
         {
-            memcpy( new_title, title, len + sizeof(WCHAR) );
+            memcpy( new_title, title, len );
             new_title[len / sizeof(WCHAR)] = 0;
             if (console->title) free( console->title );
             console->title = new_title;


More information about the wine-patches mailing list