diff --git a/src/sharedspice.c b/src/sharedspice.c index f21dee18a..0e2d54138 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -610,7 +610,7 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi struct passwd *pw; pw = getpwuid(getuid()); - s = tprintf("%s%s", pw->pw_dir, INITSTR); + s = tprintf("%s" DIR_PATHSEP "%s", pw->pw_dir, INITSTR); if (access(s, 0) == 0) inp_source(s); diff --git a/src/tclspice.c b/src/tclspice.c index f0efe02ca..b34e3b3c5 100644 --- a/src/tclspice.c +++ b/src/tclspice.c @@ -2522,7 +2522,7 @@ Spice_Init(Tcl_Interp *interp) struct passwd *pw; pw = getpwuid(getuid()); - s = tprintf("%s%s", pw->pw_dir, INITSTR); + s = tprintf("%s" DIR_PATHSEP "%s", pw->pw_dir, INITSTR); if (access(s, 0) == 0) inp_source(s);