X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b5f46f4ba364af010a7ef5afb20b667fcbe9b136..420e2298044905daba7dc2a670e0f62863a0c404:/uip/mhparse.c diff --git a/uip/mhparse.c b/uip/mhparse.c index 8cfa8998..ea5400e0 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -276,7 +276,8 @@ get_content (FILE *in, char *file, int toplevel) * content into a linked list. */ for (compnum = 1, state = FLD;;) { - switch (state = m_getfld (state, name, buf, sizeof(buf), in)) { + int bufsz = sizeof buf; + switch (state = m_getfld (state, name, buf, &bufsz, in)) { case FLD: case FLDPLUS: case FLDEOF: @@ -288,7 +289,8 @@ get_content (FILE *in, char *file, int toplevel) /* if necessary, get rest of field */ while (state == FLDPLUS) { - state = m_getfld (state, name, buf, sizeof(buf), in); + bufsz = sizeof buf; + state = m_getfld (state, name, buf, &bufsz, in); vp = add (buf, vp); /* add to previous value */ }