diff options
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |