Fix incorrect use of pstrcpy (malc)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5538 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2008-10-26 10:22:11 +00:00
parent 1b52da581d
commit 51a0f568c5
1 changed files with 1 additions and 1 deletions

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