From 45575b2b1b703408a06eca8a42ed179e8ba621b9 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 14 May 2017 11:06:28 +0200 Subject: [PATCH] inptyplk.c, INPtypelook(), ignore case when comparing modelname "bsim6" is in lower case in bsim6init.c --- src/spicelib/parser/inptyplk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/parser/inptyplk.c b/src/spicelib/parser/inptyplk.c index 578e4d411..8763427f9 100644 --- a/src/spicelib/parser/inptyplk.c +++ b/src/spicelib/parser/inptyplk.c @@ -34,7 +34,7 @@ int INPtypelook(char *type) printf("In INPtypelook, checking model type = %s against existing model = %s, . . .\n", type, ft_sim->devices[i]->name); #endif - if (ft_sim->devices[i] && strcmp(type, ft_sim->devices[i]->name) == 0) { + if (ft_sim->devices[i] && strcasecmp(type, ft_sim->devices[i]->name) == 0) { /* found the device - return it */ #ifdef TRACE