/* Called to indicate that connection was disconnected to the server. */
void silc_disconnect(SilcClient client, SilcClientConnection conn,
- SilcStatus status, const char *message)
+ SilcStatus status, const char *message)
{
SILC_SERVER_REC *server = conn->context;
char *name = silc_channel_get_name(entry, &name_len);
if (m)
- strncat(buf, m, strlen(m));
- strncat(buf, name, name_len);
- strncat(buf, " ", 1);
+ silc_strncat(buf, sizeof(buf) - 1, m, strlen(m));
+ silc_strncat(buf, sizeof(buf) - 1, name, name_len);
+ silc_strncat(buf, sizeof(buf) - 1, " ", 1);
silc_free(m);
}