From 22b2349893daeb19c98c586a4bda2227e838b298 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 5 Jun 2014 20:17:51 +0200 Subject: [PATCH] fix #285 .spiceinit cannot be read in from home directory reported by Craggan in bug report #285 http://sourceforge.net/p/ngspice/bugs/285/ --- src/sharedspice.c | 2 +- src/tclspice.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);