projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More sensible check for 7bit ASCII
[mmh]
/
uip
/
mhbuild.c
diff --git
a/uip/mhbuild.c
b/uip/mhbuild.c
index
1fdedb6
..
01acdb7
100644
(file)
--- a/
uip/mhbuild.c
+++ b/
uip/mhbuild.c
@@
-349,7
+349,6
@@
build_mime(char *infile)
switch (state = m_getfld(state, name, buf, sizeof(buf), in)) {
case FLD:
case FLDPLUS:
switch (state = m_getfld(state, name, buf, sizeof(buf), in)) {
case FLD:
case FLDPLUS:
- case FLDEOF:
compnum++;
/* abort if draft has Mime-Version header field */
compnum++;
/* abort if draft has Mime-Version header field */
@@
-368,7
+367,7
@@
build_mime(char *infile)
while (state == FLDPLUS)
state = m_getfld(state, name, buf,
sizeof(buf), in);
while (state == FLDPLUS)
state = m_getfld(state, name, buf,
sizeof(buf), in);
- goto finish_field;
+ continue;
}
/* get copies of the buffers */
}
/* get copies of the buffers */
@@
-385,18
+384,13
@@
build_mime(char *infile)
/* Now add the header data to the list */
add_header(ct, np, vp);
/* Now add the header data to the list */
add_header(ct, np, vp);
-finish_field:
- /* if this wasn't the last hdr field, then continue */
- if (state != FLDEOF)
- continue;
- /* else fall... */
+ continue;
case FILEEOF:
adios(EX_CONFIG, NULL, "draft has empty body -- no directives!");
/* NOTREACHED */
case BODY:
case FILEEOF:
adios(EX_CONFIG, NULL, "draft has empty body -- no directives!");
/* NOTREACHED */
case BODY:
- case BODYEOF:
fseek(in, (long) (-strlen(buf)), SEEK_CUR);
break;
fseek(in, (long) (-strlen(buf)), SEEK_CUR);
break;