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;