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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/itemdb.c b/src/char_sql/itemdb.c
index 0bed07c..85c4929 100644
--- a/src/char_sql/itemdb.c
+++ b/src/char_sql/itemdb.c
@@ -105,7 +105,7 @@ static int itemdb_readdb(void)
char *str[32],*p,*np;
struct item_data *id;
- fp=fopen("db/item_db.txt","r");
+ fp=fopen_("db/item_db.txt","r");
if(fp==NULL){
printf("can't read db/item_db.txt\n");
exit(1);
@@ -134,7 +134,7 @@ static int itemdb_readdb(void)
id->type=atoi(str[3]);
}
- fclose(fp);
+ fclose_(fp);
printf("read db/item_db.txt done (count=%d)\n",ln);
return 0;
}