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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 82168ac48..866d8ca67 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -1299,8 +1299,8 @@ int read_petdb()
return -1;
}
lines = 0;
- while(fgets(line,1020,fp) && j < MAX_PET_DB){
-
+ while(fgets(line, sizeof(line), fp) && j < MAX_PET_DB)
+ {
lines++;
if(line[0] == '/' && line[1] == '/')