--- ray/src/util/getinfo.c 2022/03/21 17:11:29 2.24 +++ ray/src/util/getinfo.c 2023/03/16 17:16:05 2.26 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: getinfo.c,v 2.24 2022/03/21 17:11:29 greg Exp $"; +static const char RCSid[] = "$Id: getinfo.c,v 2.26 2023/03/16 17:16:05 greg Exp $"; #endif /* * getinfo.c - program to read info. header from file. @@ -62,8 +62,10 @@ adjheadline( /* check for lines to remove */ } if (s1 == s) continue; - if (isspace(*s1) && !*s2 | isspace(*s2)) - return(0); /* skip */ + if ((*s1 == '=') & !*s2) + return(0); + if (isspace(*s1) & isspace(*s2)) + return(0); } fputs(s, stdout); /* copy if no match */ return(0); @@ -234,7 +236,7 @@ main( #endif if (dim < 0) { /* dimensions only */ if (getheader(fp, NULL, NULL) < 0) { - fputs("bad header!\n", stdout); + fputs(": bad header!\n", stdout); continue; } fputs(": ", stdout);