clean-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@858 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -22,20 +22,24 @@ pop_sendline(POP *p, char *buffer)
|
|||||||
char * bp;
|
char * bp;
|
||||||
|
|
||||||
/* Byte stuff lines that begin with the temirnation octet */
|
/* Byte stuff lines that begin with the temirnation octet */
|
||||||
if (*buffer == POP_TERMINATE) (void)fputc(POP_TERMINATE,p->output);
|
if (*buffer == POP_TERMINATE)
|
||||||
|
fputc(POP_TERMINATE,p->output);
|
||||||
|
|
||||||
/* Look for a <NL> in the buffer */
|
/* Look for a <NL> in the buffer */
|
||||||
if ((bp = strchr(buffer,NEWLINE))) *bp = 0;
|
if ((bp = strchr(buffer, '\n')))
|
||||||
|
*bp = 0;
|
||||||
|
|
||||||
/* Send the line to the client */
|
/* Send the line to the client */
|
||||||
(void)fputs(buffer,p->output);
|
fputs(buffer,p->output);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if(p->debug)pop_log(p,POP_DEBUG,"Sending line \"%s\"",buffer);
|
if(p->debug)
|
||||||
|
pop_log(p,POP_DEBUG,"Sending line \"%s\"",buffer);
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
/* Put a <CR><NL> if a newline was removed from the buffer */
|
/* Put a <CR><NL> if a newline was removed from the buffer */
|
||||||
if (bp) (void)fputs ("\r\n",p->output);
|
if (bp)
|
||||||
|
fputs ("\r\n",p->output);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user