summaryrefslogtreecommitdiff
path: root/src/map/irc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/irc.c')
-rw-r--r--src/map/irc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/irc.c b/src/map/irc.c
index e74b89efa..c9ca87202 100644
--- a/src/map/irc.c
+++ b/src/map/irc.c
@@ -515,7 +515,8 @@ int irc_read_conf(char *file)
return 0;
}
- while(fgets(row,1023,fp)!=NULL) {
+ while(fgets(row, sizeof(row), fp) != NULL)
+ {
if(row[0]=='/'&&row[1]=='/')
continue;
sscanf(row,"%[^:]: %255[^\r\n]",w1,w2);