bug in the 'ro' text formatter
Robert Lacoste
rlacoste at kebra.laas.fr
Mon Feb 26 23:50:41 AEST 1990
I had a problem compiling the 'ro' text formatter submitted in
comp.source.unix with the sun C compiler :
Problem:
In ro_macr.c, line 170, a call to strlen is made
with an argument that can be NULL, giving a bus error
on a SUN 3...
Proposed correction:
Replacement of all strlen calls by mystrlen, with the
following definition:
int mystrlen(s)
char *s;
{
if (s==NULL) return (0);
else return(strlen(s));
}
Any comment ? Robert Lacoste.
More information about the Comp.sources.bugs
mailing list