Skip to contentSkip to conversation

[5538] Fix incorrect use of pstrcpy (malc)

Qemu-devel Blue Swirl 1 participant 1 message Oct 26, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

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
===================================================================

block-vvfat.c +1 -1
@@ -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++)