mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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:
parent
1b52da581d
commit
51a0f568c5
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ static inline direntry_t* create_short_and_long_name(BDRVVVFATState* s,
|
||||||
|
|
||||||
entry=array_get_next(&(s->directory));
|
entry=array_get_next(&(s->directory));
|
||||||
memset(entry->name,0x20,11);
|
memset(entry->name,0x20,11);
|
||||||
pstrcpy((char*)entry->name, i, filename);
|
memcpy(entry->name, filename, i);
|
||||||
|
|
||||||
if(j > 0)
|
if(j > 0)
|
||||||
for (i = 0; i < 3 && filename[j+1+i]; i++)
|
for (i = 0; i < 3 && filename[j+1+i]; i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue