From b66f48b0d0caea86ac3ae5e5044e3340be22f1a6 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:37:15 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- sbr/trimcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/trimcpy.c b/sbr/trimcpy.c index 7a2ac03a..50e7142e 100644 --- a/sbr/trimcpy.c +++ b/sbr/trimcpy.c @@ -37,7 +37,7 @@ trimcpy (char *cp) } /* now return a copy */ - return getcpy(cp); + return mh_xstrdup(cp); } -- 2.56.0