X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmessagehandler.c;h=4b6c39659dc75a75477b2ae8cf53d43c553a8f5b;hb=9bf7a133fd2e6500976bdd7c8a8bc830f54c5c13;hp=c2aa522dae820baed897b61d967f7775bc937619;hpb=1c9b1f27ae2c73853f1c493885315506923a04be;p=umurmur.git diff --git a/src/messagehandler.c b/src/messagehandler.c index c2aa522..4b6c396 100644 --- a/src/messagehandler.c +++ b/src/messagehandler.c @@ -140,7 +140,7 @@ void Mh_handle_message(client_t *client, message_t *msg) if (Client_count() >= getIntConf(MAX_CLIENTS)) { char buf[64]; - sprintf(buf, "Server is full (max %d users)", getIntConf(MAX_CLIENTS)); + snprintf(buf, 64, "Server is full (max %d users)", getIntConf(MAX_CLIENTS)); sendServerReject(client, buf, MUMBLE_PROTO__REJECT__REJECT_TYPE__ServerFull); goto disconnect; }