From 663c9c7ce25d3df3749c55c28af162c46015bc92 Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Tue, 7 Dec 2010 18:38:03 +0000 Subject: Changed almost all instances of sprintf() to snprintf(). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14563 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/quest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/quest.c') diff --git a/src/map/quest.c b/src/map/quest.c index 3e43fcda6..99bf763cf 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -306,7 +306,7 @@ int quest_read_db(void) int i,j,k = 0; char *str[20],*p,*np; - sprintf(line, "%s/quest_db.txt", db_path); + snprintf(line, sizeof line, "%s/quest_db.txt", db_path); if( (fp=fopen(line,"r"))==NULL ){ ShowError("can't read %s\n", line); return -1; -- cgit v1.2.3-60-g2f50