FT_CharMap charmap;
a = (font_t *) gdMalloc (sizeof (font_t));
- a->fontlist = estrdup (b->fontlist);
+ a->fontlist = gdEstrdup (b->fontlist);
a->library = b->library;
/*
fontsearchpath = getenv ("GDFONTPATH");
if (!fontsearchpath)
fontsearchpath = DEFAULT_FONTPATH;
- fontlist = estrdup (a->fontlist);
+ fontlist = gdEstrdup (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 = estrdup (fontsearchpath);
+ path = gdEstrdup (fontsearchpath);
/*
* Allocate an oversized buffer that is guaranteed to be
* big enough for all paths to be tested.
void *gdCalloc(size_t nmemb, size_t size);
void *gdMalloc(size_t size);
void *gdRealloc(void *ptr, size_t size);
+char *gdEstrdup(const char *ptr);
#endif /* GDHELPERS_H */