]> diplodocus.org Git - nmh/blobdiff - uip/mhcachesbr.c
Generalized condition for support of parameter value tests.
[nmh] / uip / mhcachesbr.c
index ae563c2fdf1118db5e38fe8abecf8297fdf99ecc..7ac0a0def3ef70c88a0990e8fc89d904b6d16b6b 100644 (file)
@@ -231,7 +231,7 @@ got_it:
 
        /* Now, construct query */
        if (writing) {
-           snprintf (bp, buflen, "Make cached, publically-accessible copy");
+           snprintf (bp, buflen, "Make cached, publicly-accessible copy");
        } else {
            struct stat st;
 
@@ -258,7 +258,7 @@ got_it:
        snprintf (bp, buflen, "\n    in file %s? ", buffer);
 
        /* Now, check answer */
-       if (!getanswer (query))
+       if (!read_yes_or_no_if_tty (query))
            status = NOTOK;
     }
 
@@ -388,7 +388,7 @@ find_cache_aux2 (char *mapfile, char *id, char *mapname, int namelen)
                if (state != FLDPLUS)
                    cp = buf;
                else {
-                   cp = add (buf, NULL);
+                   cp = mh_xstrdup(buf);
                    while (state == FLDPLUS) {
                        bufsz = sizeof buf;
                        state = m_getfld (&gstate, name, buf, &bufsz, fp);