minor beautification
This commit is contained in:
parent
6b5debfc1e
commit
754406a335
|
|
@ -1,3 +1,8 @@
|
|||
2010-11-02 Robert Larice
|
||||
* src/frontend/outitf.c ,
|
||||
* src/spicelib/parser/inp2r.c :
|
||||
minor beautification
|
||||
|
||||
2010-11-02 Robert Larice
|
||||
* src/ciderlib/input/cards.c ,
|
||||
* src/frontend/cpitf.c ,
|
||||
|
|
|
|||
|
|
@ -985,7 +985,7 @@ plotAddRealValue(dataDesc *desc, double value)
|
|||
v->v_compdata = (ngcomplex_t *) newrealloc(v->v_compdata,
|
||||
sizeof(ngcomplex_t) * (size_t) (v->v_length + 1));
|
||||
v->v_compdata[v->v_length].cx_real = value;
|
||||
v->v_compdata[v->v_length].cx_imag = (double) 0;
|
||||
v->v_compdata[v->v_length].cx_imag = 0.0;
|
||||
}
|
||||
v->v_length++;
|
||||
v->v_dims[0]=v->v_length; /* va, must be updated */
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ void INP2R(CKTcircuit *ckt, INPtables * tab, card * current)
|
|||
/* copy first part of line */
|
||||
i -= strlen(t);
|
||||
strncpy(line, current->line, (size_t) i);
|
||||
line[i]=0; /* terminate */
|
||||
line[i] = '\0'; /* terminate */
|
||||
|
||||
/* add "tc2=" */
|
||||
strcat(line, "tc2=");
|
||||
|
|
|
|||
Loading…
Reference in New Issue