summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d16b17160..5d54ee1a5 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -172,6 +172,8 @@ int git_buf_puts_escaped(
}
}
+ buf->ptr[buf->size] = '\0';
+
return 0;
}