]> git.marmaro.de Git - mmh/blobdiff - uip/mhmail.c
Use the same mh_hostname() function from test/common.h in mhsign(1)
[mmh] / uip / mhmail.c
index 1515858b0e9733bc852b6b5fc2e1927e8c1ed363..4215ecf24f0bab3e4a34a417d1a3cf62cdb63850 100644 (file)
@@ -32,6 +32,8 @@ static struct swit switches[] = {
        { NULL, 0 }
 };
 
+char *version=VERSION;
+
 static char tmpfil[BUFSIZ];
 
 /*
@@ -107,10 +109,10 @@ main(int argc, char **argv)
                }
                if (iscc)
                        cclist = cclist ? add(cp, add(", ", cclist)) :
-                                       getcpy(cp);
+                                       mh_xstrdup(cp);
                else
                        tolist = tolist ? add(cp, add(", ", tolist)) :
-                                       getcpy(cp);
+                                       mh_xstrdup(cp);
        }
 
        if (tolist == NULL)