Index: svg.c =================================================================== --- svg.c (revision 11548) +++ svg.c (revision 11549) @@ -44,6 +44,7 @@ #include "misc_util.h" #include "compat_misc.h" #include "plugins.h" +#include "safe_fs.h" #include "hid.h" #include "hid_nogui.h" @@ -288,7 +289,7 @@ if (!filename) filename = "pcb.svg"; - f = fopen(filename, "wb"); + f = pcb_fopen(filename, "wb"); if (!f) { perror(filename); return;