X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dc28e9494cfcba39ae69d1fa441500a32b49416e..792d7e1e:/uip/mhcachesbr.c?ds=inline diff --git a/uip/mhcachesbr.c b/uip/mhcachesbr.c index ae563c2f..7ac0a0de 100644 --- a/uip/mhcachesbr.c +++ b/uip/mhcachesbr.c @@ -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);