X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9a33ff618b5901a3af815650d4b84d39ee96e529..52a3727a8e26bc651f3330cb80f11ba627cfaac7:/sbr/seq_read.c?ds=inline diff --git a/sbr/seq_read.c b/sbr/seq_read.c index c18d1dae..3cf8ad89 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -3,8 +3,6 @@ * seq_read.c -- read the .mh_sequence file and * -- initialize sequence information * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -79,14 +77,16 @@ seq_public (struct msgs *mp) /* Use m_getfld to scan sequence file */ for (state = FLD;;) { - switch (state = m_getfld (state, name, field, sizeof(field), fp)) { + int fieldsz = sizeof field; + switch (state = m_getfld (state, name, field, &fieldsz, fp)) { case FLD: case FLDPLUS: case FLDEOF: if (state == FLDPLUS) { cp = getcpy (field); while (state == FLDPLUS) { - state = m_getfld (state, name, field, sizeof(field), fp); + fieldsz = sizeof field; + state = m_getfld (state, name, field, &fieldsz, fp); cp = add (field, cp); } seq_init (mp, getcpy (name), trimcpy (cp)); @@ -160,7 +160,8 @@ seq_private (struct msgs *mp) static int seq_init (struct msgs *mp, char *name, char *field) { - int i, j, k, is_current; + unsigned int i; + int j, k, is_current; char *cp, **ap; /*