Minor code simplification in preparation for upcoming fix.
char *cp;
for (i = 0, cp = text; i < s->edelimlen; ++i, ++cp) {
char *cp;
for (i = 0, cp = text; i < s->edelimlen; ++i, ++cp) {
- int c2;
-
- if ((c2 = Getc (s)) == EOF) {
+ if ((*cp = Getc (s)) == EOF) {
}
if (i != s->edelimlen ||
strncmp (text, (char *)s->edelim, s->edelimlen)) {
}
if (i != s->edelimlen ||
strncmp (text, (char *)s->edelim, s->edelimlen)) {
- if (i == 0 && s->msg_style == MS_MBOX)
+ if (i == 0 && s->msg_style == MS_MBOX) {
/* the final newline in the (brain damaged) unix-format
* maildrop is part of the delimiter - delete it.
*/
return 1;
/* the final newline in the (brain damaged) unix-format
* maildrop is part of the delimiter - delete it.
*/
return 1;
/* Did not find delimiter, so restore the read position.
Note that on input, a character had already been read
/* Did not find delimiter, so restore the read position.
Note that on input, a character had already been read