From 88414a58ceec35e77ebdab55c89f0eaed0ae4348 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 27 Dec 2015 15:35:27 +0100 Subject: [PATCH] frontend/control.c, bug fix, "#310 Command parser problem with wrdata" make all commands (see manual 17.5) entered manually, with .control section or by script case insensitive. generally in inpcom.c everything is converted to lowercase, but there are exceptions, e.g. "wrdata", which might be followed by arguments whose case needs to be preserved. (most notably filenames) Thanks to Mathias Gebhardt, who reported this bug in #310 Command parser problem with wrdata http://sourceforge.net/p/ngspice/bugs/310/ --- src/frontend/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/control.c b/src/frontend/control.c index b87a21978..ba684060e 100644 --- a/src/frontend/control.c +++ b/src/frontend/control.c @@ -195,7 +195,7 @@ docommand(wordlist *wlist) /* Look for the command in the command list. */ for (i = 0; cp_coms[i].co_comname; i++) - if (strcmp(cp_coms[i].co_comname, s) == 0) + if (strcasecmp(cp_coms[i].co_comname, s) == 0) break; command = &cp_coms[i];