From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:26 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/cde386219c31953507be4a0f1da545d589577bcf?hp=d03048946b96d9e255603ea49454f33cb71a420f Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/scansbr.c b/uip/scansbr.c index c2ddf369..6033c3c1 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -86,7 +86,7 @@ scan (FILE *inb, int innum, int outnum, char *nfs, int width, int curflg, datecomp = fmt_findcomp("date"); cptr = fmt_findcomp("folder"); if (cptr && folder) - cptr->c_text = getcpy(folder); + cptr->c_text = mh_xstrdup(folder); if (fmt_addcompentry("encrypted")) { ncomps++; }