File afflib-3.6.12-fix-vvfat-overflow.patch of Package afflib

--- old/lib/qemu/block-vvfat.c	2011-05-29 00:55:09.024353723 +0200
+++ new/lib/qemu/block-vvfat.c	2011-05-29 00:56:05.041937980 +0200
@@ -870,7 +870,8 @@
     {
 	direntry_t* entry=array_get_next(&(s->directory));
 	entry->attributes=0x28; /* archive | volume label */
-	snprintf((char*)entry->name,11,"QEMU VVFAT");
+	memcpy(entry->name, "QEMU VVF", 8);
+	memcpy(entry->extension, "AT", 3);
     }
 
     /* Now build FAT, and write back information into directory */
openSUSE Build Service is sponsored by