summaryrefslogtreecommitdiff
path: root/lib/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vsnprintf.c')
-rw-r--r--lib/vsnprintf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/vsnprintf.c b/lib/vsnprintf.c
index 1fdfb6bc8..c5ddd8e91 100644
--- a/lib/vsnprintf.c
+++ b/lib/vsnprintf.c
@@ -52,11 +52,11 @@ vsnprintf (char *str, size_t size, const char *format, va_list args)
if (output != str)
{
if (size)
- {
- size_t pruned_len = (len < size ? len : size - 1);
- memcpy (str, output, pruned_len);
- str[pruned_len] = '\0';
- }
+ {
+ size_t pruned_len = (len < size ? len : size - 1);
+ memcpy (str, output, pruned_len);
+ str[pruned_len] = '\0';
+ }
free (output);
}