From 2877cfba22a68aeefae6a8ba211b24367781eafb Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 18 Jan 2014 18:50:50 +0100 Subject: [PATCH] file source: use open_with_path() --- src/xspice/icm/analog/file_source/cfunc.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xspice/icm/analog/file_source/cfunc.mod b/src/xspice/icm/analog/file_source/cfunc.mod index 9394e573c..4493f64dd 100644 --- a/src/xspice/icm/analog/file_source/cfunc.mod +++ b/src/xspice/icm/analog/file_source/cfunc.mod @@ -166,7 +166,7 @@ void cm_filesource(ARGS) /* structure holding parms, inputs, outputs, etc. loc->timeinterval[0] = loc->timeinterval[1] = PARAM_NULL(timeoffset) ? 0.0 : PARAM(timeoffset); for (i = 0; i < size; ++i) loc->amplinterval[2 * i] = loc->amplinterval[2 * i + 1] = PARAM_NULL(amploffset) ? 0.0 : PARAM(amploffset[i]); - loc->state->fp = fopen(PARAM(file), "r"); + loc->state->fp = fopen_with_path(PARAM(file), "r"); loc->state->pos = 0; loc->state->atend = 0; if (!loc->state->fp) {