Fix out-of-bounds error when incorporating email from stdin
[mmh] / sbr / fmt_compile.c
index f4d92d2..566f620 100644 (file)
@@ -309,7 +309,7 @@ fmt_compile(char *fstring, struct format **fmt)
 
        if (format_string)
                mh_free0(&format_string);
-       format_string = getcpy(fstring);
+       format_string = mh_xstrdup(fstring);
        usr_fstring = fstring;
 
        /* init the component hash table. */