about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index f81ee8d5d..38276faee 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2964,7 +2964,7 @@ bslashquote(const char *s, char **e, int instring)
 {
     const char *u, *tt;
     char *v;
-    char *buf = ncalloc(2 * strlen(s) + 1);
+    char *buf = ncalloc(3 * strlen(s) + 1);
     int sf = 0;
 
     tt = v = buf;