openbsd-ports/audio/umurmur/patches/patch-src_messagehandler_c
dcoppa aa0c1124ca Update to umurmur-0.2.10.
From maintainer Jonathon Sisson, tweaked by me
2012-04-12 10:03:19 +00:00

16 lines
825 B
Plaintext

$OpenBSD: patch-src_messagehandler_c,v 1.3 2012/04/12 10:03:19 dcoppa Exp $
--- src/messagehandler.c.orig Sun Mar 18 20:26:26 2012
+++ src/messagehandler.c Thu Apr 12 11:36:49 2012
@@ -478,9 +478,9 @@ void Mh_handle_message(client_t *client, message_t *ms
sendmsg->payload.textMessage->n_tree_id = 1;
sendmsg->payload.textMessage->tree_id = tree_id;
if (client->recording)
- sprintf(message, "User %s started recording", client->username);
+ snprintf(message, strlen(client->username) + 32, "User %s started recording", client->username);
else
- sprintf(message, "User %s stopped recording", client->username);
+ snprintf(message, strlen(client->username) + 32, "User %s stopped recording", client->username);
Client_send_message_except_ver(NULL, sendmsg, ~0x010203);
sendmsg = NULL;
}