use true vector size for memcpy

This commit is contained in:
dwarning 2023-04-08 17:29:25 +02:00 committed by Holger Vogt
parent de09636d1a
commit 2fff3e2bc0
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ VBICload(GENmodel *inModel, CKTcircuit *ckt)
/*
* model parameters
*/
memcpy (&p, &model->VBICtnom, 108*8);
memcpy (&p, &model->VBICtnom, sizeof(p));
p[0] = here->VBICtemp - CONSTCtoK + p[105];
/* temperature dependent parameter are already calculated */

View File

@ -42,7 +42,7 @@ VBICtemp(GENmodel *inModel, CKTcircuit *ckt)
TAMB = here->VBICtemp - CONSTCtoK;
memcpy (&pnom, &model->VBICtnom, 108*8);
memcpy (&pnom, &model->VBICtnom, sizeof(pnom));
iret = vbic_4T_et_cf_t(p,pnom,&TAMB);