aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/espik_irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c
index 36408c8..dbe962d 100644
--- a/src/espik_irc.c
+++ b/src/espik_irc.c
@@ -91,7 +91,7 @@ buf_t make_buffer(int len)
espik_enter();
buf.buf = malloc (len);
- buf.len = len + 1;
+ buf.len = len + 1; /* Alloc trailing \0 */
espik_leave();
return (buf);