summaryrefslogtreecommitdiff
path: root/src/char_sql/itemdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/itemdb.c')
-rw-r--r--src/char_sql/itemdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char_sql/itemdb.c b/src/char_sql/itemdb.c
index a5c2aa8f0..b03d76bfe 100644
--- a/src/char_sql/itemdb.c
+++ b/src/char_sql/itemdb.c
@@ -92,7 +92,8 @@ static int itemdb_readdb(void)
}
lines=0;
- while(fgets(line,1020,fp)){
+ while(fgets(line, sizeof(line), fp))
+ {
lines++;
if(line[0]=='/' && line[1]=='/')
continue;