free(gm->u->utf8str);
gm->u->utf8str = 0;
}
- gm->u->utf8str = (uint8 *) strdup((const char *) utf8str);
+ gm->u->utf8str = (uint8 *) dupstr((const char *) utf8str);
gm->u->ucolor = ucolor;
if (closest_color(ucolor, &closecolor, &clridx))
gm->u->u256coloridx = clridx;
if (!gdc->details) {
- gdc->customization_name = strdup(customization_name);
+ gdc->customization_name = dupstr(customization_name);
gdc->custtype = custom_ureps;
gdc->details = 0;
}
if (details->content.urep.u.utf8str)
free(details->content.urep.u.utf8str);
details->content.urep.u.utf8str =
- (uint8 *) strdup((const char *) utf8str);
+ (uint8 *) dupstr((const char *) utf8str);
details->content.urep.u.ucolor = ucolor;
if (closest_color(ucolor, &closecolor, &clridx))
details->content.urep.u.u256coloridx = clridx;
sizeof(struct customization_detail));
newdetails->content.urep.glyphidx = glyphidx;
newdetails->content.urep.u.utf8str =
- (uint8 *) strdup((const char *) utf8str);
+ (uint8 *) dupstr((const char *) utf8str);
newdetails->content.urep.u.ucolor = ucolor;
if (closest_color(ucolor, &closecolor, &clridx))
newdetails->content.urep.u.u256coloridx = clridx;
Fprintf(fp, "(%04d) %s\n", glyph, buf[0]);
} else if (filling_cache) {
glyphid_cache[glyph].glyphnum = glyph;
- glyphid_cache[glyph].id = strdup(buf[0]);
+ glyphid_cache[glyph].id = dupstr(buf[0]);
} else if (id) {
if (!strcmpi(id, buf[0])) {
findwhat->findtype = find_glyph;