qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [FOR 0.12 PATCH 4/4] QemuOpts: allow larger option values.


From: Gerd Hoffmann
Subject: [Qemu-devel] [FOR 0.12 PATCH 4/4] QemuOpts: allow larger option values.
Date: Thu, 10 Dec 2009 11:11:08 +0100

Use case: loooooooooooooooooong file names for -drive file=...

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 qemu-option.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu-option.c b/qemu-option.c
index b009109..24392fc 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -705,7 +705,7 @@ int qemu_opts_print(QemuOpts *opts, void *dummy)
 
 int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char 
*firstname)
 {
-    char option[128], value[128];
+    char option[128], value[1024];
     const char *p,*pe,*pc;
 
     for (p = params; *p != '\0'; p++) {
@@ -751,7 +751,7 @@ int qemu_opts_do_parse(QemuOpts *opts, const char *params, 
const char *firstname
 
 QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char 
*firstname)
 {
-    char value[128], *id = NULL;
+    char value[1024], *id = NULL;
     const char *p;
     QemuOpts *opts;
 
-- 
1.6.5.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]