Index: trunk/src_plugins/fp_fs/fp_fs.c =================================================================== --- trunk/src_plugins/fp_fs/fp_fs.c (revision 1594) +++ trunk/src_plugins/fp_fs/fp_fs.c (revision 1595) @@ -25,7 +25,6 @@ */ #include "config.h" -#include "global.h" #include #ifdef HAVE_PWD_H @@ -96,8 +95,19 @@ l->children++; e = fp_append_entry(l->menu, name, type, tags); - e->data.fp.loc_info = Concat(subdir, "/", name, NULL); +/* Avoid using Concat() - would be a new dependency for gsch2pcb-rnd */ + { + int sl = strlen(subdir); + int nl = strlen(name); + char *end; + + end = e->data.fp.loc_info = malloc(sl+nl+3); + memcpy(end, subdir, sl); end += sl; + *end = '/'; end++; + memcpy(end, name, nl+1); end += nl; + } + return 0; }