]> 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 64dd84879ed313fe7aee77fa9390a6a203283135..ffa6b575e8fd4641f663fd5ee63769043aa20451 100644 (file)
@@ -9,6 +9,8 @@
 */
 
 #include <h/mh.h>
+#include <h/utils.h>
+#include <ctype.h>
 
 
 char *
@@ -35,5 +37,5 @@ trimcpy(unsigned char *cp)
        }
 
        /* now return a copy */
-       return getcpy(cp);
+       return mh_xstrdup(cp);
 }