]> git.marmaro.de Git - mmh/blobdiff - sbr/trimcpy.c
Use the same mh_hostname() function from test/common.h in mhsign(1)
[mmh] / sbr / trimcpy.c
index 1f590c31f6abb441072c2b35690dc84e9a1d6b6c..ffa6b575e8fd4641f663fd5ee63769043aa20451 100644 (file)
@@ -9,10 +9,12 @@
 */
 
 #include <h/mh.h>
+#include <h/utils.h>
+#include <ctype.h>
 
 
 char *
-trimcpy (unsigned char *cp)
+trimcpy(unsigned char *cp)
 {
        unsigned char *sp;
 
@@ -35,5 +37,5 @@ trimcpy (unsigned char *cp)
        }
 
        /* now return a copy */
-       return getcpy(cp);
+       return mh_xstrdup(cp);
 }