--- source/lgutil.c.orig 2001-11-04 11:24:00.000000000 -0500 +++ source/lgutil.c 2014-11-26 20:33:37.000000000 -0500 @@ -113,7 +113,7 @@ check=0; if (*config=='\n' || config[strlen(config)-2]!='\\') check=1; - if (fgets(config, BUFFERSIZE, tf)==NULL) break; + if (fgets(config, sizeof config, tf)==NULL) break; if (check!=0) AddToLList(config, &currlch, &llch); } while (strcmp((*currlch).name, "EndOfLanguageDefinitions")!=0); rch=lch; @@ -277,7 +277,7 @@ char linebuf[201], *cp; varsubst *varsubsts=NULL, *substitem, *substlistpos; - if (f==NULL) return; + if (f==NULL) return NULL; while (!feof(f)) { fscanf(f, "%200[^\n]", linebuf);