From 3473cbab9c67953b99c0ee2cf02d88a7e98d7265 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 11 Oct 2013 13:57:05 +0200 Subject: [PATCH] vstr: Forward actual field width fmt_field_width is a flag that indicates if a field width is defined in obj_field_width. --- src/libstrongswan/utils/printf_hook/printf_hook_vstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c b/src/libstrongswan/utils/printf_hook/printf_hook_vstr.c index f1884f119..ab93b24ba 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);