Commit 51a0f568c5b0301fd8e44e5c28eaa8a82ea523d8

Authored by blueswir1
1 parent 1b52da58

Fix incorrect use of pstrcpy (malc)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5538 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
block-vvfat.c
... ... @@ -625,7 +625,7 @@ static inline direntry_t* create_short_and_long_name(BDRVVVFATState* s,
625 625  
626 626 entry=array_get_next(&(s->directory));
627 627 memset(entry->name,0x20,11);
628   - pstrcpy((char*)entry->name, i, filename);
  628 + memcpy(entry->name, filename, i);
629 629  
630 630 if(j > 0)
631 631 for (i = 0; i < 3 && filename[j+1+i]; i++)
... ...