Replace getcpy() and strdup() with mh_xstrdup()
[mmh] / sbr / trimcpy.c
index 0d7f58a..ffa6b57 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);
 }