summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4cda5cc)
Do a length check in the header, but not in the body.
+ if (nchars >= NAMESZ) {
+ ret = LENERR2;
+ }
+
if (*(tmpline + nchars - 1) != '\n') {
ret = FMTERR2;
}
if (*(tmpline + nchars - 1) != '\n') {
ret = FMTERR2;
}
- if (nchars >= NAMESZ) {
- ret = LENERR2;
- }
-
free(f->value);
f->value = tmpline;
f->valuelen = nchars;
free(f->value);
f->value = tmpline;
f->valuelen = nchars;