summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index f9f145918..2f4609c90 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -534,7 +534,7 @@ print_it (char const *masterformat, char const *filename,
/* create a working copy of the format string */
char *format = xstrdup (masterformat);
- char *dest = xmalloc (strlen (format) + 1);
+ char *dest = xmalloc (strlen (format) + 2 + 1);
b = format;
while (b)