X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c6f2d14d9c38345075629af3487c2de491584ca1..e5afa1df87c24d49f0572ff903d4b0ee2eb803a8:/sbr/fmt_compile.c diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 4f60cebb..10d3e575 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -290,7 +290,7 @@ static struct colormap colortable[] = { /* Add new component to the hash table */ #define NEWCOMP(cm,name) do { \ NEW0(cm);\ - cm->c_name = getcpy(name);\ + cm->c_name = mh_xstrdup(name);\ cm->c_refcount++;\ ncomp++;\ i = CHASH(name);\ @@ -393,7 +393,7 @@ fmt_compile(char *fstring, struct format **fmt, int reset_comptable) size_t i; static int comptable_initialized = 0; - format_string = getcpy (fstring); + format_string = mh_xstrdup(fstring); usr_fstring = fstring; if (reset_comptable || !comptable_initialized) {