FT_CharMap charmap;
a = (font_t *) gdMalloc (sizeof (font_t));
- a->fontlist = strdup (b->fontlist);
+ a->fontlist = estrdup (b->fontlist);
a->library = b->library;
/*
fontsearchpath = getenv ("GDFONTPATH");
if (!fontsearchpath)
fontsearchpath = DEFAULT_FONTPATH;
- fontlist = strdup (a->fontlist);
+ fontlist = estrdup (a->fontlist);
/*
* Must use gd_strtok_r else pointer corrupted by strtok in nested loop.
{
/* make a fresh copy each time - strtok corrupts it. */
- path = strdup (fontsearchpath);
+ path = estrdup (fontsearchpath);
/*
* Allocate an oversized buffer that is guaranteed to be
* big enough for all paths to be tested.