From f0b08f6d42e02547da2461c8d470d7c481bc531c Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Thu, 25 Jun 2009 11:56:14 +0200 Subject: Fix overflow in broadcast commands. --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 74567bb..6536e00 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5560,7 +5560,7 @@ int atcommand_broadcast( return -1; } - sprintf(output, "%s : %s", sd->status.name, message); + snprintf(output, 199, "%s : %s", sd->status.name, message); intif_GMmessage(output, strlen(output) + 1, 0); return 0; @@ -5583,7 +5583,7 @@ int atcommand_localbroadcast( return -1; } - sprintf(output, "%s : %s", sd->status.name, message); + snprintf(output, 199, "%s : %s", sd->status.name, message); clif_GMmessage(&sd->bl, output, strlen(output) + 1, 1); // 1: ALL_SAMEMAP -- cgit v1.2.3-60-g2f50