Fix out-of-bounds error when incorporating email from stdin
[mmh] / uip / mhpath.c
index c400fa6..aa63f4d 100644 (file)
@@ -64,7 +64,7 @@ main(int argc, char **argv)
                        if (folder) {
                                adios(EX_USAGE, NULL, "only one folder at a time!");
                        } else {
-                               folder = getcpy(expandfol(cp));
+                               folder = mh_xstrdup(expandfol(cp));
                        }
                } else {
                        app_msgarg(&msgs, cp);