Browse Source

Fix incorrect use of pstrcpy (malc)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5538 c046a42c-6fe2-441c-8c8c-71466251a162
blueswir1 17 years ago
parent
commit
51a0f568c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      block-vvfat.c

+ 1 - 1
block-vvfat.c

@@ -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++)