diff options
author | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2010-07-14 16:39:43 +0100 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2010-07-14 16:39:43 +0100 |
commit | bba3b1da6e19c974afd3f934be50438fc7f32821 (patch) | |
tree | 5f63ff39dde657e2a79d6f685f8771cd510f4b44 /tools/libxl/libxl_exec.c | |
parent | 1304d52120c8c6fa9b837f25c83509aff13d60ec (diff) | |
download | xen-bba3b1da6e19c974afd3f934be50438fc7f32821.tar.gz xen-bba3b1da6e19c974afd3f934be50438fc7f32821.tar.bz2 xen-bba3b1da6e19c974afd3f934be50438fc7f32821.zip |
libxl: add libxl_strdup convenience function
Use in preference to libxl_sprintf(..., "%s", "...")
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_exec.c')
-rw-r--r-- | tools/libxl/libxl_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index 83c14d2720..ddded06829 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -100,7 +100,7 @@ int libxl_spawn_spawn(struct libxl_ctx *ctx, struct libxl_spawn_starting *for_spawn = starting->for_spawn; if (for_spawn) { - for_spawn->what = libxl_sprintf(ctx, "%s", what); + for_spawn->what = libxl_strdup(ctx, what); if (!for_spawn->what) return ERROR_NOMEM; } |