strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for '+' in custom format specifiers
[strongswan.git]
/
src
/
libstrongswan
/
printf_hook.c
diff --git
a/src/libstrongswan/printf_hook.c
b/src/libstrongswan/printf_hook.c
index
2ae8043
..
8bd513c
100644
(file)
--- a/
src/libstrongswan/printf_hook.c
+++ b/
src/libstrongswan/printf_hook.c
@@
-93,6
+93,7
@@
static int custom_print(FILE *stream, const struct printf_info *info,
};
spec.hash = info->alt;
+ spec.plus = info->showsign;
spec.minus = info->left;
spec.width = info->width;
@@
-164,6
+165,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;