X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_new.c;h=c1386d4c710bb4de354bbbbc9d219b6753ccc5eb;hp=6dcc70b3535b79e1e26950fb23c4937355d76ffc;hb=9cf6132a6ea29968131a000bc2fb6860affac45e;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index 6dcc70b..c1386d4 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -35,7 +35,7 @@ new_fs(char *form, char *def_form) if (form) { if (*form == '=') { - formats = getcpy(form+1); + formats = mh_xstrdup(form+1); } else { if ((fp = fopen(etcpath(form), "r")) == NULL) { adios(EX_IOERR, form, "unable to open format file"); @@ -52,7 +52,7 @@ new_fs(char *form, char *def_form) } } else if (def_form) { if (*def_form == '=') { - formats = getcpy(def_form+1); + formats = mh_xstrdup(def_form+1); } else { if ((fp = fopen(etcpath(def_form), "r")) == NULL) { adios(EX_IOERR, def_form, "unable to open format file");