From 51a0f568c5b0301fd8e44e5c28eaa8a82ea523d8 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 26 Oct 2008 10:22:11 +0000 Subject: Fix incorrect use of pstrcpy (malc) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5538 c046a42c-6fe2-441c-8c8c-71466251a162 --- block-vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block-vvfat.c b/block-vvfat.c index 1db2c8c87b..9e2841a409 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); - pstrcpy((char*)entry->name, i, filename); + memcpy(entry->name, filename, i); if(j > 0) for (i = 0; i < 3 && filename[j+1+i]; i++) -- cgit v1.2.3