From 5231493ca1103d6a26feb0e09d22936a3f69be3b Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 14:52:25 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- uip/new.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/new.c b/uip/new.c index 2304c1ef..dd173cc0 100644 --- a/uip/new.c +++ b/uip/new.c @@ -280,7 +280,7 @@ check_folders(struct node **first, struct node **last, while (vfgets(fp, &line) == OK) { len = strlen(line) - 1; line[len] = '\0'; - check_folder(getcpy(line), len, &b); + check_folder(mh_xstrdup(line), len, &b); } fclose(fp); } -- 2.56.0