Skip to content
Permalink
Browse files Browse the repository at this point in the history
parse_conf_file fix fix
  • Loading branch information
PatR committed Dec 17, 2019
1 parent 089b241 commit f001de7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/files.c
@@ -1,4 +1,4 @@
/* NetHack 3.6 files.c $NHDT-Date: 1574116097 2019/11/18 22:28:17 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.272 $ */
/* NetHack 3.6 files.c $NHDT-Date: 1576626110 2019/12/17 23:41:50 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.276 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Derek S. Ray, 2015. */
/* NetHack may be freely redistributed. See license for details. */
Expand Down Expand Up @@ -3160,7 +3160,8 @@ boolean FDECL((*proc), (char *));
free(buf);
}
buf = strcat(tmpbuf, ep);
buf[sizeof inbuf - 1] = '\0';
if (strlen(buf) >= sizeof inbuf)
buf[sizeof inbuf - 1] = '\0';
}

if (morelines || (ignoreline && !oldline))
Expand Down

0 comments on commit f001de7

Please sign in to comment.