Skip to content

Commit

Permalink
Not enough space allocated for initialization name of ion in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Apr 23, 2019
1 parent 8f736e0 commit 603da17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nrnoc/eion.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void ion_reg(const char* name, double valence)
double val;
#define VAL_SENTINAL -10000.

{int n = strlen(name) + 10;
{int n = 2*strlen(name) + 10; /*name used twice in initialization name */
for (i=0; i < 7; ++i) {
buf[i] = emalloc(n);
}
Expand Down

0 comments on commit 603da17

Please sign in to comment.