Skip to content

Commit

Permalink
Bug fix: thisEqn variable in code_c.c needs to be of size MAX_EQNLEN+1
Browse files Browse the repository at this point in the history
This will prevent a compiler warning in GNU C.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
  • Loading branch information
yantosca committed Jul 3, 2022
1 parent 57641d1 commit 59cb631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ int * ival;
double * dval;
char ** cval;
int maxCols = MAX_COLS;
char thisEqn[MAX_EQNLEN];
char thisEqn[MAX_EQNLEN+1];

var = varTable[ v ];
ival = (int*) values;
Expand Down

0 comments on commit 59cb631

Please sign in to comment.