about summary refs log tree commit diff stats
path: root/termbox/output.inl
diff options
context:
space:
mode:
Diffstat (limited to 'termbox/output.inl')
-rw-r--r--termbox/output.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/termbox/output.inl b/termbox/output.inl
index 43ebed3b..d87049ef 100644
--- a/termbox/output.inl
+++ b/termbox/output.inl
@@ -245,7 +245,7 @@ static const char *terminfo_copy_string(char *data, int str, int table) {
   const char *src = data + table + off;
   int len = strlen(src);
   char *dst = malloc(len+1);
-  string_copy(dst, src, len);
+  string_copy(dst, src, len+1);
   return dst;
 }