From: Pekka Riikonen Date: Thu, 17 Oct 2002 16:22:35 +0000 (+0000) Subject: Corrected used of silc_file_readfile. X-Git-Tag: silc.client.0.9.6~1 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=b917581bd316731bd551ad0a9e27060e16e1a5ee;p=silc.git Corrected used of silc_file_readfile. --- diff --git a/apps/silcd/packet_send.c b/apps/silcd/packet_send.c index 0e6e7b07..e51506ac 100644 --- a/apps/silcd/packet_send.c +++ b/apps/silcd/packet_send.c @@ -1048,6 +1048,7 @@ void silc_server_send_motd(SilcServer server, if (!motd) return; + motd[motd_len] = 0; silc_server_send_notify(server, sock, FALSE, SILC_NOTIFY_TYPE_MOTD, 1, motd, motd_len); silc_free(motd);