mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
[iphreeqc] Issue 8 -- change sprintf to snprintf for CRAN (#9)
This commit is contained in:
parent
2a2707ae76
commit
11a8399149
@ -23,7 +23,7 @@ void ExtractWrite(int cell)
|
||||
switch (vt[j]) {
|
||||
case TT_DOUBLE:
|
||||
dv[j] = v.dVal;
|
||||
sprintf(sv[j], "%23.15e", v.dVal);
|
||||
snprintf(sv[j], sizeof(sv[j]), "%23.15e", v.dVal);
|
||||
break;
|
||||
case TT_STRING:
|
||||
strcpy(sv[j], v.sVal);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user