fix read_dataset() for windows

This commit is contained in:
Stefan Frederik 2022-07-27 11:06:54 +02:00
parent d86a422c59
commit 5af2b8eb7a
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ static int read_dataset(FILE *fd)
while((ptr = fgets(line, sizeof(line), fd)) ) {
/* after this line comes the binary blob made of nvars * npoints * sizeof(double) bytes */
if(!strcmp(line, "Values:\n")) { /* this is an ASCII raw file. We don't handle this (yet) */
if(!strcmp(line, "Values:\n") || !strcmp(line, "Values:\r\n")) { /* this is an ASCII raw file. We don't handle this (yet) */
free_rawfile(0);
dbg(0, "read_dataset(): ASCII raw files can not be read. "
"Use binary format in ngspice (set filetype=binary)\n");