From 88f30aa4a33ff4d175cd4749e84d8d373eed795f Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 5 Mar 2013 15:40:42 -0600 Subject: [PATCH 1/1] Fix default capture config --- programs/imagex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/imagex.c b/programs/imagex.c index ed0f24dc..f07b1183 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -785,9 +785,9 @@ static int imagex_capture_or_append(int argc, const char **argv) } ret = wimlib_add_image(w, source, name, - config_str ? config_str : default_capture_config, - config_len, add_image_flags, - imagex_progress_func); + (config_str ? config_str : default_capture_config), + (config_str ? config_len : strlen(default_capture_config)), + add_image_flags, imagex_progress_func); if (ret != 0) goto out; -- 2.43.0