]> diplodocus.org Git - nmh/blobdiff - uip/prompter.c
sbr/vector.c: Remove `vec' argument from BVEC_OFFSET(), etc.
[nmh] / uip / prompter.c
index 164ff52a271da671ed89f10a218c0ff2c1ba2cd6..630ef860cdf4f392f2881c864a8b28e47de5f190 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * prompter.c -- simple prompting editor front-end
+/* prompter.c -- simple prompting editor front-end
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -214,7 +212,7 @@ main (int argc, char **argv)
                    while (state == FLDPLUS) {
                        fieldsz = sizeof field;
                        state = m_getfld (&gstate, name, field, &fieldsz, in);
                    while (state == FLDPLUS) {
                        fieldsz = sizeof field;
                        state = m_getfld (&gstate, name, field, &fieldsz, in);
-                       printf ("%s", field);
+                       fputs(field, stdout);
                        fputs(field, out);
                    }
                } else {
                        fputs(field, out);
                    }
                } else {
@@ -269,7 +267,7 @@ abort:
                    do {
                        fputs(field, out);
                        if (!rapid && !sigint)
                    do {
                        fputs(field, out);
                        if (!rapid && !sigint)
-                           printf ("%s", field);
+                           fputs(field, stdout);
                    } while (state == BODY &&
                            (fieldsz = sizeof field,
                             state = m_getfld (&gstate, name, field, &fieldsz, in)));
                    } while (state == BODY &&
                            (fieldsz = sizeof field,
                             state = m_getfld (&gstate, name, field, &fieldsz, in)));