From: Eric Biggers Date: Tue, 5 Mar 2013 21:40:42 +0000 (-0600) Subject: Fix default capture config X-Git-Tag: v1.2.6~3 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=88f30aa4a33ff4d175cd4749e84d8d373eed795f Fix default capture config --- 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;