diff options
Diffstat (limited to 'block-vvfat.c')
-rw-r--r-- | block-vvfat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block-vvfat.c b/block-vvfat.c index 79804a7107..1db2c8c87b 100644 --- a/block-vvfat.c +++ b/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); - strncpy((char*)entry->name,filename,i); + pstrcpy((char*)entry->name, i, filename); if(j > 0) for (i = 0; i < 3 && filename[j+1+i]; i++) |