server fix

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

 



change log says it all
A+
--
Eric Pouech
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;

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

  Powered by Linux