diff -urN moria-5.6/source/files.c moria-5.6.dag/source/files.c --- moria-5.6/source/files.c 2008-10-14 00:44:36.000000000 +0100 +++ moria-5.6.dag/source/files.c 2012-12-06 17:48:38.072272999 +0000 @@ -125,6 +125,12 @@ while (fgets(in_line, 80, file1) != CNIL) if (strlen(in_line) > 3) { + /* These lines should be as in tables.c - i.e. + 3 letter day, :, 24 chars, one per hour + the fgets will have read a \n which I'm + about to NULL */ + in_line[3+1+24]='\0'; + if (!strncmp(in_line, "SUN:", 4)) (void) strcpy(days[0], in_line); else if (!strncmp(in_line, "MON:", 4))