aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/host.c')
-rw-r--r--src/libstrongswan/utils/host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/host.c b/src/libstrongswan/utils/host.c
index aab0f092f..bde7dc142 100644
--- a/src/libstrongswan/utils/host.c
+++ b/src/libstrongswan/utils/host.c
@@ -149,6 +149,10 @@ static int print(FILE *stream, const struct printf_info *info,
break;
}
}
+ if (info->left)
+ {
+ return fprintf(stream, "%-*s", info->width, buffer);
+ }
return fprintf(stream, "%*s", info->width, buffer);
}