]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vstr: Forward actual field width
authorTobias Brunner <tobias@strongswan.org>
Fri, 11 Oct 2013 11:57:05 +0000 (13:57 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 11 Oct 2013 13:12:16 +0000 (15:12 +0200)
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

index f1884f1196975da195797fde928eb0a34fd9ea67..ab93b24ba1f0976c25faf6efc9e59a86cedfba84 100644 (file)
@@ -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);