Index: dlg.c =================================================================== --- dlg.c (revision 30941) +++ dlg.c (revision 30942) @@ -165,7 +165,7 @@ return; \ } \ free(ntxt->data.text.value); \ - ntxt->data.text.value = pcb_strdup(nval == NULL ? "" : nval); \ + ntxt->data.text.value = rnd_strdup(nval == NULL ? "" : nval); \ } while(0) static void rule_btn_save_cb(void *hid_ctx, void *caller_data, pcb_hid_attribute_t *attr_inp) @@ -244,7 +244,7 @@ ctx = calloc(sizeof(rule_edit_ctx_t), 1); ctx->role = role; - ctx->rule = pcb_strdup(rule); + ctx->rule = rnd_strdup(rule); ctx->path = path; gdl_insert(&rule_edit_dialogs, ctx, link); @@ -381,7 +381,7 @@ /* remember cursor */ r = pcb_dad_tree_get_selected(attr); if (r != NULL) - cursor_path = pcb_strdup(r->cell[0]); + cursor_path = rnd_strdup(r->cell[0]); /* remove existing items */ pcb_dad_tree_clear(tree); @@ -403,7 +403,7 @@ role = pcb_conf_lookup_role(rule); cell[0] = rule->name; - cell[1] = pcb_strdup(pcb_conf_role_name(role)); + cell[1] = rnd_strdup(pcb_conf_role_name(role)); cell[2] = *dis ? "YES" : "no"; if (st->run_cnt > 0) cell[3] = pcb_strdup_printf("%.3fs", st->last_run_time); Index: drc_query.c =================================================================== --- drc_query.c (revision 30941) +++ drc_query.c (revision 30942) @@ -165,9 +165,9 @@ st = pcb_drcq_stat_get(name); - ts = pcb_dtime(); + ts = rnd_dtime(); pcb_qry_run_script(ec, pcb, query, scope, drc_qry_exec_cb, &qctx); - te = pcb_dtime(); + te = rnd_dtime(); st->last_run_time = te - ts; st->sum_run_time += te - ts; @@ -269,7 +269,7 @@ if ((ndesc != NULL) && (ndesc->type == LHT_TEXT)) sdesc = ndesc->data.text.value; b = calloc(sizeof(pcb_bool_t), 1); - nat = pcb_conf_reg_field_(b, 1, CFN_BOOLEAN, path, pcb_strdup(sdesc), 0); + nat = pcb_conf_reg_field_(b, 1, CFN_BOOLEAN, path, rnd_strdup(sdesc), 0); if (nat == NULL) { free(b); rnd_message(PCB_MSG_ERROR, "drc_query: failed to register conf node '%s'\n", path); @@ -322,7 +322,7 @@ } c = calloc(sizeof(anyval), 1); - nat = pcb_conf_reg_field_(c, 1, type, path, pcb_strdup(sdesc), 0); + nat = pcb_conf_reg_field_(c, 1, type, path, rnd_strdup(sdesc), 0); if (nat == NULL) { free(c); rnd_message(PCB_MSG_ERROR, "drc_query: failed to register conf node '%s'\n", path); Index: drc_query_stat.c =================================================================== --- drc_query_stat.c (revision 30941) +++ drc_query_stat.c (revision 30942) @@ -33,7 +33,7 @@ return st; st = calloc(sizeof(pcb_drcq_stat_t), 1); - st->name = pcb_strdup(name); + st->name = rnd_strdup(name); htsp_set(&pcb_drcq_stat, (char *)st->name, st); return st; }