summaryrefslogtreecommitdiff
path: root/recipes/qemu/qemu-0.10.3
diff options
context:
space:
mode:
authorYuri Bushmelev <jay4mail@gmail.com>2009-12-15 23:11:46 +0300
committerYuri Bushmelev <jay4mail@gmail.com>2009-12-15 23:11:46 +0300
commit4e9de808a7cc1f90f33864bdfe06fa9b917ea654 (patch)
treec6223413186320c4ff39918dfa1b2e9918102389 /recipes/qemu/qemu-0.10.3
parent47d6cb217ff161738488f4f82af9dd8f8c616ce0 (diff)
Patch added to fix QEMU 0.10.3 compilation on distros with FORTIFY_SOURCE enabled.
Diffstat (limited to 'recipes/qemu/qemu-0.10.3')
-rw-r--r--recipes/qemu/qemu-0.10.3/fix_fortify_source_compilation.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/qemu/qemu-0.10.3/fix_fortify_source_compilation.patch b/recipes/qemu/qemu-0.10.3/fix_fortify_source_compilation.patch
new file mode 100644
index 0000000000..326d197167
--- /dev/null
+++ b/recipes/qemu/qemu-0.10.3/fix_fortify_source_compilation.patch
@@ -0,0 +1,13 @@
+--- qemu-0.10.3/block-vvfat.c.orig 2009-05-01 21:02:44 +0400
++++ qemu-0.10.3/block-vvfat.c 2009-12-15 22:06:04 +0300
+@@ -865,7 +865,9 @@
+ {
+ direntry_t* entry=array_get_next(&(s->directory));
+ entry->attributes=0x28; /* archive | volume label */
+- snprintf((char*)entry->name,11,"QEMU VVFAT");
++ /* snprintf((char*)entry->name,11,"QEMU VVFAT"); */
++ snprintf(entry->name, sizeof(entry->name), "QEMU VV");
++ snprintf(entry->extension, sizeof(entry->extension), "FAT");
+ }
+
+ /* Now build FAT, and write back information into directory */