Lines Matching full:linebuf
105 static int strip_eol(char *linebuf, int *plen);
537 char linebuf[MAX_SMLEN];
548 while((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0)
549 BIO_write(out, linebuf, len);
555 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0)
557 eol = strip_eol(linebuf, &len);
559 BIO_write(out, linebuf, len);
606 char linebuf[MAX_SMLEN];
619 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
620 state = mime_bound_check(linebuf, len, bound, blen);
628 /* Strip CR+LF from linebuf */
629 next_eol = strip_eol(linebuf, &len);
639 BIO_write(bpart, linebuf, len);
660 char linebuf[MAX_SMLEN];
666 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
668 if(mhdr && isspace((unsigned char)linebuf[0])) state = MIME_NAME;
672 for(p = linebuf, q = linebuf; (c = *p) && (c!='\r') && (c!='\n'); p++) {
748 if(p == linebuf) break; /* Blank line means end of headers */
926 static int strip_eol(char *linebuf, int *plen)
931 p = linebuf + len - 1;
932 for (p = linebuf + len - 1; len > 0; len--, p--)