rem: *rr = 0;
add: buf[count] = '\0';
context: readrec(buf, bufsize, inf)	/* read one record into buf */	uchar *buf;	int bufsize;	FILE *inf;{	register int sep, c;	register uchar *rr;	int	count;	if ((sep = **RS) == 0) {		sep = '\n';		/* skip leading \n's */		while ((c = getc(inf)) == '\n' && c != EOF)			;		if (c != EOF)			ungetc(c, inf);	}	for (rr = buf, count = 0; ; ) {		while ((c = getc(inf)) != sep && c != EOF) {			count++;			if (count > bufsize)				ERROR "input record `%.20s...' too long",				    buf FATAL;			*rr++ = c;		}		if (**RS == sep || c == EOF)			break;		if ((c = getc(inf)) == '\n' || c == EOF) /* 2 in a row */			break;		count += 2;		if (count > bufsize)			ERROR "input record `%.20s...' too long", buf FATAL;		*rr++ = '\n';		*rr++ = c;	}	*rr = 0;	dprintf(("readrec saw <%s>, returns %d\n",		buf, c == EOF && rr == buf ? 0 : 1));	return (c == EOF && rr == buf ? 0 : 1);}