]> diplodocus.org Git - nmh/blobdiff - sbr/m_getfld.c
h/mhparse.h: Move mhfree.c's free_content prototype to new header.
[nmh] / sbr / m_getfld.c
index 8d784889a7f02fc4be29bf27e7b40a5601916252..0f068031ad681c71e14a62b629ab92b508821550 100644 (file)
@@ -664,7 +664,7 @@ m_getfld (m_getfld_state_t *gstate, char name[NAMESZ], char *buf, int *bufsz,
            max = *bufsz-1;
            /* Back up and store the current position. */
            bp = --s->readpos;
-           c = s->end - s->readpos < max  ?  s->end - s->readpos  :  max;
+            c = min(s->end - s->readpos, max);
            if (s->msg_style != MS_DEFAULT && c > 1) {
                /*
                 * packed maildrop - only take up to the (possible)