updates.
[silc.git] / apps / silcd / packet_receive.c
index d4899345a514001b22b1d0e8a0d2ef5e5d741692..0c010bdfe97d377dd98ecf46207aaf7ac4143bfa 100644 (file)
@@ -316,7 +316,7 @@ void silc_server_notify(SilcServer server,
 
     if (channel->topic)
       silc_free(channel->topic);
-    channel->topic = silc_calloc(tmp_len, sizeof(*channel->topic));
+    channel->topic = silc_calloc(tmp_len + 1, sizeof(*channel->topic));
     memcpy(channel->topic, tmp, tmp_len);
 
     /* Send the same notify to the channel */