aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/printf_hook.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-08-13 12:07:52 +0200
committerTobias Brunner <tobias@strongswan.org>2012-08-13 12:07:52 +0200
commit09ae3d79ca0f1143736a0de45678915a3ebe5a3f (patch)
treed304e8e618450d0e4867dfc72e14ed575a442c20 /src/libstrongswan/printf_hook.c
parente4ef4c9877d5ccb773ace0edf655351428c39572 (diff)
parentefbb5e8c57330ec730825aa31ac5153f1d1c5913 (diff)
downloadstrongswan-09ae3d79ca0f1143736a0de45678915a3ebe5a3f.tar.bz2
strongswan-09ae3d79ca0f1143736a0de45678915a3ebe5a3f.tar.xz
Merge branch 'android-app'
This branch introduces a userland IPsec implementation (libipsec) and an Android App which targets the VpnService API that is provided by Android 4+. The implementation is based on the bachelor thesis 'Userland IPsec for Android 4' by Giuliano Grassi and Ralf Sager.
Diffstat (limited to 'src/libstrongswan/printf_hook.c')
-rw-r--r--src/libstrongswan/printf_hook.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/printf_hook.c b/src/libstrongswan/printf_hook.c
index 2ae804380..8bd513c05 100644
--- 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;