Patch by J Sisson: sprintf -> snprintf
[umurmur.git] / src / messagehandler.c
index c2aa522dae820baed897b61d967f7775bc937619..4b6c39659dc75a75477b2ae8cf53d43c553a8f5b 100644 (file)
@@ -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;
                }