minor beautification

This commit is contained in:
rlar 2010-11-02 17:25:32 +00:00
parent 6b5debfc1e
commit 754406a335
3 changed files with 7 additions and 2 deletions

View File

@ -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 ,

View File

@ -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 */

View File

@ -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=");