Now a field is complete read, if a line is to long.
Also no length check is done in the body, because
the caller can check f.valuelength.
f->valuelen = nchars;
}
- while (ret == FLD2 && (falted = is_falted(msg)) == B_TRUE) {
+ while ((ret == FLD2 || ret == LENERR2) && (falted = is_falted(msg)) == B_TRUE) {
nchars = getline(&tmpline, &len, msg);
if (nchars <= 0) {
free(tmpline);
return IOERR2;
}
- if (nchars >= NAMESZ) {
- ret = LENERR2;
- }
-
if (*(tmpline + nchars - 1) != '\n') {
ret = FMTERR2;
}