projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
apps
/
silcd
/
packet_receive.c
diff --git
a/apps/silcd/packet_receive.c
b/apps/silcd/packet_receive.c
index d4899345a514001b22b1d0e8a0d2ef5e5d741692..0c010bdfe97d377dd98ecf46207aaf7ac4143bfa 100644
(file)
--- a/
apps/silcd/packet_receive.c
+++ b/
apps/silcd/packet_receive.c
@@
-316,7
+316,7
@@
void silc_server_notify(SilcServer server,
if (channel->topic)
silc_free(channel->topic);
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 */
memcpy(channel->topic, tmp, tmp_len);
/* Send the same notify to the channel */