]> git.marmaro.de Git - mmh/blobdiff - sbr/trimcpy.c
Replace getcpy() and strdup() with mh_xstrdup()
[mmh] / sbr / trimcpy.c
index 0d7f58a8190b2b373a3e98865e9753b9aa32343d..ffa6b575e8fd4641f663fd5ee63769043aa20451 100644 (file)
@@ -9,6 +9,7 @@
 */
 
 #include <h/mh.h>
+#include <h/utils.h>
 #include <ctype.h>
 
 
@@ -36,5 +37,5 @@ trimcpy(unsigned char *cp)
        }
 
        /* now return a copy */
-       return getcpy(cp);
+       return mh_xstrdup(cp);
 }