Fix endless loop

This commit is contained in:
Andrew Pamment 2017-04-19 15:41:41 +10:00
parent 62dcaf30d1
commit f7cfad4f06

View File

@ -241,6 +241,7 @@ int menu_system(char *menufile) {
fgets(buffer, PATH_MAX, fptr);
while (!feof(fptr)) {
s_printf("%s\r\n", buffer);
fgets(buffer, PATH_MAX, fptr);
}
fclose(fptr);
snprintf(buffer, PATH_MAX, "%s/node%d/nodemsg.txt", conf.bbs_path, mynode);