X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex.c;h=f07b11833cf0484951de4776c2d690137e2db52a;hp=ed0f24dce3bc853c4f3c60151152ae74c051138a;hb=88f30aa4a33ff4d175cd4749e84d8d373eed795f;hpb=5a11a0ba6142f5f528dd741372e2f8d775170993 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;