qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5538] Fix incorrect use of pstrcpy (malc)
@ 2008-10-26 10:22 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-10-26 10:22 UTC (permalink / raw)
  To: qemu-devel

Revision: 5538
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5538
Author:   blueswir1
Date:     2008-10-26 10:22:11 +0000 (Sun, 26 Oct 2008)

Log Message:
-----------
Fix incorrect use of pstrcpy (malc)

Modified Paths:
--------------
    trunk/block-vvfat.c

Modified: trunk/block-vvfat.c
===================================================================
--- trunk/block-vvfat.c	2008-10-26 09:54:50 UTC (rev 5537)
+++ trunk/block-vvfat.c	2008-10-26 10:22:11 UTC (rev 5538)
@@ -625,7 +625,7 @@
 
     entry=array_get_next(&(s->directory));
     memset(entry->name,0x20,11);
-    pstrcpy((char*)entry->name, i, filename);
+    memcpy(entry->name, filename, i);
 
     if(j > 0)
 	for (i = 0; i < 3 && filename[j+1+i]; i++)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-26 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-26 10:22 [Qemu-devel] [5538] Fix incorrect use of pstrcpy (malc) Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).