Index: tests/conf/Makefile =================================================================== --- tests/conf/Makefile (revision 2671) +++ tests/conf/Makefile (revision 2672) @@ -11,7 +11,9 @@ ../../src/conf_core.o \ ../../src/conf_hid.o \ ../../src/conf_internal.o \ - ../../src/pcb-printf.o + ../../src/pcb-printf.o \ + ../../src/compat_misc.o \ + ../../src/compat_fs.o LIB_PLUGIN_OBJS=\ ../../src_plugins/debug/debug_conf.o Index: tests/conf/conftest.c =================================================================== --- tests/conf/conftest.c (revision 2671) +++ tests/conf/conftest.c (revision 2672) @@ -4,6 +4,7 @@ #include "conf.h" #include "conf_hid.h" #include "conf_core.h" +#include "compat_misc.h" #include "src_plugins/debug/debug_conf.h" int lineno = 0; @@ -171,7 +172,7 @@ *end = '\0'; sprintf(tmp, "%s-%d", first->name, np); free(first->name); - first->name = strdup(tmp); + first->name = pcb_strdup(tmp); conf_update(NULL); } } @@ -199,11 +200,11 @@ if (end != NULL) { sprintf(tmp, "%s%s", arg, end); free(first->name); - first->name = strdup(tmp); + first->name = pcb_strdup(tmp); } else { free(first->name); - first->name = strdup(arg); + first->name = pcb_strdup(arg); } conf_update(NULL); }