summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 843f1cc11..b0bb0bc6a 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -1222,7 +1222,7 @@ int read_petdb()
char line[1024];
int lines;
- sprintf(line, "%s/%s", db_path, filename[i]);
+ snprintf(line, sizeof line, "%s/%s", db_path, filename[i]);
fp=fopen(line,"r");
if( fp == NULL )
{