X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..372d8d466d78a89031d07323b898b4e0703336dc:/uip/mhcachesbr.c 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);