From 415860ebaeb990c0c8da27cc7aa565a137b97fe9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Jul 2017 01:08:15 +0300 Subject: Fix possible buffer overflows with snprintf. --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 905b6a3ce..bb4d53a99 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17726,7 +17726,7 @@ void clif_cashshop_db(void) { if( cashshop != NULL && (cats = libconfig->setting_get_elem(cashshop, 0)) != NULL ) { for(i = 0; i < CASHSHOP_TAB_MAX; i++) { struct config_setting_t *cat; - char entry_name[10]; + char entry_name[15]; sprintf(entry_name,"cat_%d",i); -- cgit v1.2.3-70-g09d2