mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix truncated-format warning in ncgen
This commit is contained in:
parent
cffc5187a2
commit
33a6ab034a
@ -193,7 +193,7 @@ cstring(
|
|||||||
return cp;
|
return cp;
|
||||||
|
|
||||||
case NC_DOUBLE:
|
case NC_DOUBLE:
|
||||||
cp_size = 20;
|
cp_size = 24;
|
||||||
cp = (char *) emalloc (cp_size);
|
cp = (char *) emalloc (cp_size);
|
||||||
doublep = (double *)valp;
|
doublep = (double *)valp;
|
||||||
(void) snprintf(cp,cp_size,"%.16g",* (doublep + num));
|
(void) snprintf(cp,cp_size,"%.16g",* (doublep + num));
|
||||||
|
Loading…
Reference in New Issue
Block a user