SCCS-vsn: lib/libc/net/rcmd.c 5.4
-static char sccsid[] = "@(#)rcmd.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)rcmd.c 5.4 (Berkeley) %G%";
#endif not lint
#include <stdio.h>
#endif not lint
#include <stdio.h>
return(0);
}
ldomain[MAXHOSTNAMELEN] = NULL;
return(0);
}
ldomain[MAXHOSTNAMELEN] = NULL;
- domainp = index(ldomain, '.') + 1;
+ if ((domainp = index(ldomain, '.') + 1) == (char *)1)
+ return(0);
cp = domainp;
while (*cp)
*cp++ = isupper(*cp) ? tolower(*cp) : *cp;
cp = domainp;
while (*cp)
*cp++ = isupper(*cp) ? tolower(*cp) : *cp;