index -> strchr

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@146 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-10-04 15:31:45 +00:00
parent 7acf491d11
commit 74465373c1

View File

@@ -79,7 +79,7 @@ POP * p;
return_path_adr++)
;
if (return_path_adr < buffer + return_path_linlen) {
if ((return_path_end = index(return_path_adr, ' ')) != NULL)
if ((return_path_end = strchr(return_path_adr, ' ')) != NULL)
*return_path_end = '\0';
if (strlen(return_path_adr) != 0 && *return_path_adr != '\n') {
static char tmpbuf[MAXMSGLINELEN + 20];
@@ -136,7 +136,7 @@ char * buffer;
if (*buffer == POP_TERMINATE) (void)fputc(POP_TERMINATE,p->output);
/* Look for a <NL> in the buffer */
if (bp = index(buffer,NEWLINE)) *bp = 0;
if (bp = strchr(buffer,NEWLINE)) *bp = 0;
/* Send the line to the client */
(void)fputs(buffer,p->output);