]> diplodocus.org Git - nmh/commitdiff
Fixed a couple of calls to m_getfld(): they were in while loops
authorDavid Levine <levinedl@acm.org>
Sun, 27 Jan 2013 14:37:31 +0000 (08:37 -0600)
committerDavid Levine <levinedl@acm.org>
Sun, 27 Jan 2013 14:37:31 +0000 (08:37 -0600)
and the loop bodies were missing brackets.

uip/forwsbr.c
uip/msh.c

index 901e6328a1996f38262b3a4d6ceaf0c05cfb87fc..cf043c40b2bbba6d74b7ae7d165913d98debddcd 100644 (file)
@@ -107,9 +107,10 @@ build_form (char *form, char *digest, int *dat, char *from, char *to,
                        fmt_appendcomp(i, name, msgbuf);
                    }
                }
-               while (state == FLDPLUS)
+               while (state == FLDPLUS) {
                    msg_count = sizeof msgbuf;
                    state = m_getfld (&gstate, name, msgbuf, &msg_count, tmp);
+               }
                break;
 
            case LENERR:
index ac1e34ae6e04a8ee39a1cbbc0a6062b710c23017..a266f344fdac4bb104070ec66118bac376fdb7a2 100644 (file)
--- a/uip/msh.c
+++ b/uip/msh.c
@@ -1027,9 +1027,10 @@ readid (int msgnum)
                    else
                        continue;
                }
-               while (state == FLDPLUS)
+               while (state == FLDPLUS) {
                    bufsz = sizeof buf;
                    state = m_getfld (&gstate, name, buf, &bufsz, zp);
+               }
                continue;
 
            default: