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 da4bcffaa..384717916 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2976,7 +2976,7 @@ bslashquote(const char *s, char **e, int instring)
 {
     const char *u, *tt;
     char *v;
-    char *buf = ncalloc(3 * strlen(s) + 1);
+    char *buf = ncalloc(4 * strlen(s) + 1);
     int sf = 0;
 
     tt = v = buf;