Use the same mh_hostname() function from test/common.h in mhsign(1)
[mmh] / uip / packf.c
index c81db88..fe1102c 100644 (file)
@@ -23,6 +23,7 @@ static struct swit switches[] = {
        { NULL, 0 }
 };
 
+char *version=VERSION;
 
 int
 main(int argc, char **argv)
@@ -66,7 +67,7 @@ main(int argc, char **argv)
                if (*cp == '+' || *cp == '@') {
                        if (folder)
                                adios(EX_USAGE, NULL, "only one folder at a time!");
-                       folder = getcpy(expandfol(cp));
+                       folder = mh_xstrdup(expandfol(cp));
                } else
                        app_msgarg(&msgs, cp);
        }