X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmessagehandler.c;h=4b6c39659dc75a75477b2ae8cf53d43c553a8f5b;hb=63c7b082aa8fd8f7323e25fa1337cc8de5c2d8d6;hp=c2aa522dae820baed897b61d967f7775bc937619;hpb=082533e47427c10c255a12a962b8d8ea7ef0bdc0;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; }