Il 27/09/2012 07:14, Dong Xu Wang ha scritto:
> +int qemu_opt_set_number(QemuOpts *opts, const char *name, int64_t val)
> +{
> +char buffer[1024];
> +snprintf(buffer, sizeof(buffer), "%" PRId64, val);
> +return qemu_opt_set(opts, name, buffer);
> +}
This has the same problem as qemu_op
Signed-off-by: Dong Xu Wang
---
qemu-option.c |8
qemu-option.h |1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/qemu-option.c b/qemu-option.c
index 818408b..2b52576 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -678,6 +678,14 @@ int qemu_opt_set_bool(Qemu