node - model compare must be correct

This commit is contained in:
dwarning 2009-04-19 10:57:17 +00:00
parent 06ae02fbde
commit 30e9bd952c
1 changed files with 8 additions and 8 deletions

View File

@ -248,7 +248,7 @@ char *INPgetMod(void *ckt, char *name, INPmodel ** model, INPtables * tab)
printf("In INPgetMod, comparing %s against stored model %s . . . \n", name, (modtmp)->INPmodName); printf("In INPgetMod, comparing %s against stored model %s . . . \n", name, (modtmp)->INPmodName);
#endif #endif
if (strstr((modtmp)->INPmodName, name) != NULL) { if (strcmp((modtmp)->INPmodName, name) == 0) {
/* found the model in question - now instantiate if necessary */ /* found the model in question - now instantiate if necessary */
/* and return an appropriate pointer to it */ /* and return an appropriate pointer to it */