Index: propdlg.c =================================================================== --- propdlg.c (revision 30941) +++ propdlg.c (revision 30942) @@ -95,7 +95,7 @@ /* remember cursor */ r = pcb_dad_tree_get_selected(attr); if (r != NULL) - cursor_path = pcb_strdup(r->path); + cursor_path = rnd_strdup(r->path); pcb_dad_tree_clear(tree); @@ -117,7 +117,7 @@ cell[4] = pcb_propsel_printval(p->type, &avg); } - cell[0] = pcb_strdup(e->key); + cell[0] = rnd_strdup(e->key); cell[1] = pcb_propsel_printval(p->type, &com); r = pcb_dad_tree_mkdirp(tree, cell[0], cell); @@ -238,7 +238,7 @@ memset(&hv, 0, sizeof(hv)); switch(p->type) { - case PCB_PROPT_STRING: hv.str = pcb_strdup(pv->string == NULL ? "" : pv->string); break; + case PCB_PROPT_STRING: hv.str = rnd_strdup(pv->string == NULL ? "" : pv->string); break; case PCB_PROPT_COORD: hv.crd = pv->coord; break; case PCB_PROPT_ANGLE: hv.dbl = pv->angle; break; case PCB_PROPT_BOOL: Index: propedit.c =================================================================== --- propedit.c (revision 30941) +++ propedit.c (revision 30942) @@ -126,7 +126,7 @@ } } else if (strncmp(cmd, "net:", 4) == 0) { - char *name = pcb_strdup(cmd+4); + char *name = rnd_strdup(cmd+4); if (!pe->nets_inited) { htsp_init(&pe->nets, strhash, strkeyeq); pe->nets_inited = 1; @@ -255,13 +255,13 @@ e = htprop_first(&p->values); most_common = e->key; res->type = FGW_STR | FGW_DYN; - res->val.str = pcb_strdup(out->string == NULL ? "" : out->string); + res->val.str = rnd_strdup(out->string == NULL ? "" : out->string); break; case PCB_PROPT_COORD: res->type = FGW_COORD; fgw_coord(res) = out->coord; break; case PCB_PROPT_ANGLE: res->type = FGW_DOUBLE; res->val.nat_double = out->angle; break; case PCB_PROPT_BOOL: case PCB_PROPT_INT: res->type = FGW_INT; res->val.nat_int = out->i; break; - case PCB_PROPT_COLOR: res->type = FGW_STR | FGW_DYN; res->val.str = pcb_strdup(out->clr.str); break; + case PCB_PROPT_COLOR: res->type = FGW_STR | FGW_DYN; res->val.str = rnd_strdup(out->clr.str); break; case PCB_PROPT_invalid: case PCB_PROPT_max: goto error; } Index: props.c =================================================================== --- props.c (revision 30941) +++ props.c (revision 30942) @@ -136,7 +136,7 @@ p = malloc(sizeof(pcb_props_t)); p->type = type; htprop_init(&p->values, prophash[type], propkeyeq[type]); - htsp_set(&ctx->props, pcb_strdup(propname), p); + htsp_set(&ctx->props, rnd_strdup(propname), p); } else { if (type != p->type) Index: propsel.c =================================================================== --- propsel.c (revision 30941) +++ propsel.c (revision 30942) @@ -408,11 +408,11 @@ if (strncmp(st->name, "p/board/", 8) == 0) { if ((strcmp(pn, "name") == 0) && - (pcb_board_change_name(pcb_strdup(st->s)))) DONE; + (pcb_board_change_name(rnd_strdup(st->s)))) DONE; if ((strcmp(pn, "filename") == 0)) { free(pcb->hidlib.filename); - pcb->hidlib.filename = pcb_strdup(st->s); + pcb->hidlib.filename = rnd_strdup(st->s); DONE; } @@ -443,7 +443,7 @@ if (strncmp(st->name, "p/layer/", 8) == 0) { if ((strcmp(pn, "name") == 0) && - (pcb_layer_rename_(layer, pcb_strdup(st->s), 1) == 0)) DONE0; + (pcb_layer_rename_(layer, rnd_strdup(st->s), 1) == 0)) DONE0; if ((strcmp(pn, "color") == 0) && (layer_recolor(layer, st->color.str) == 0)) DONE0; @@ -464,7 +464,7 @@ if (strncmp(st->name, "p/layer_group/", 14) == 0) { if ((strcmp(pn, "name") == 0) && - (pcb_layergrp_rename_(grp, pcb_strdup(st->s), 1) == 0)) DONE; + (pcb_layergrp_rename_(grp, rnd_strdup(st->s), 1) == 0)) DONE; if ((strcmp(pn, "purpose") == 0) && (pcb_layergrp_set_purpose(grp, st->s, 1) == 0)) DONE; @@ -644,7 +644,7 @@ } if ((strcmp(pn, "string") == 0) && - (old = pcb_chg_obj_name(PCB_OBJ_TEXT, text->parent.layer, text, NULL, pcb_strdup(st->s)))) { + (old = pcb_chg_obj_name(PCB_OBJ_TEXT, text->parent.layer, text, NULL, rnd_strdup(st->s)))) { free(old); DONE; } @@ -1002,13 +1002,13 @@ char *pcb_propsel_printval(pcb_prop_type_t type, const pcb_propval_t *val) { switch(type) { - case PCB_PROPT_STRING: return val->string == NULL ? pcb_strdup("") : pcb_strdup(val->string); + case PCB_PROPT_STRING: return val->string == NULL ? rnd_strdup("") : rnd_strdup(val->string); case PCB_PROPT_COORD: return pcb_strdup_printf("%m+%.02mS", pcbhl_conf.editor.grid_unit->allow, val->coord); case PCB_PROPT_ANGLE: return pcb_strdup_printf("%f", val->angle); case PCB_PROPT_INT: return pcb_strdup_printf("%d", val->i); - case PCB_PROPT_BOOL: return pcb_strdup(val->i ? "true" : "false"); + case PCB_PROPT_BOOL: return rnd_strdup(val->i ? "true" : "false"); case PCB_PROPT_COLOR: return pcb_strdup_printf("#%02x%02x%02x", val->clr.r, val->clr.g, val->clr.b); default: - return pcb_strdup(""); + return rnd_strdup(""); } }