From: Tobias Brunner Date: Fri, 11 Oct 2013 11:57:05 +0000 (+0200) Subject: vstr: Forward actual field width X-Git-Tag: 5.1.1rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3473cbab9c67953b99c0ee2cf02d88a7e98d7265;p=thirdparty%2Fstrongswan.git vstr: Forward actual field width fmt_field_width is a flag that indicates if a field width is defined in obj_field_width. --- diff --git a/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c b/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c index f1884f1196..ab93b24ba1 100644 --- a/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c +++ b/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c @@ -144,7 +144,7 @@ static int custom_fmt_cb(Vstr_base *base, size_t pos, Vstr_fmt_spec *fmt_spec) spec.hash = fmt_spec->fmt_hash; spec.plus = fmt_spec->fmt_plus; spec.minus = fmt_spec->fmt_minus; - spec.width = fmt_spec->fmt_field_width; + spec.width = fmt_spec->obj_field_width; handler->hook(&data, &spec, args);