From dc5291fa91f93173b0695ee4eabd6493d64a1c86 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 30 Jul 2023 08:37:55 +0200 Subject: [PATCH] fopen_with_path enable path search (directory of recent inputs or NGSPICE_INPUT_DIR) --- src/xspice/icm/analog/xfer/cfunc.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xspice/icm/analog/xfer/cfunc.mod b/src/xspice/icm/analog/xfer/cfunc.mod index 6da543975..eaa67d5e3 100644 --- a/src/xspice/icm/analog/xfer/cfunc.mod +++ b/src/xspice/icm/analog/xfer/cfunc.mod @@ -45,7 +45,7 @@ static double *read_file(const char *fn, int span, int offset, double vals[9]; char buff[1024]; - fp = fopen(fn, "r"); + fp = fopen_with_path(fn, "r"); if (fp == NULL) { cm_message_printf("Can not open file %s: %s", fn, strerror(errno)); return NULL;