]> Git Repo - qemu.git/commitdiff
Fix incorrect use of pstrcpy (malc)
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Oct 2008 10:22:11 +0000 (10:22 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 26 Oct 2008 10:22:11 +0000 (10:22 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5538 c046a42c-6fe2-441c-8c8c-71466251a162

block-vvfat.c

index 1db2c8c87b7faf24f095e4beb5d8cf5a1be54b2e..9e2841a409fef379c6e651d3980cc65c15b07989 100644 (file)
@@ -625,7 +625,7 @@ static inline direntry_t* create_short_and_long_name(BDRVVVFATState* s,
 
     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++)
This page took 0.029048 seconds and 4 git commands to generate.