From 33a6ab034aa44eb2e9ad2120bb2ac7cb9ee3b3c4 Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Mon, 25 Mar 2024 15:49:03 +0000 Subject: [PATCH] Fix truncated-format warning in ncgen --- ncgen3/genlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncgen3/genlib.c b/ncgen3/genlib.c index 9f0d5b721..0d775a737 100644 --- a/ncgen3/genlib.c +++ b/ncgen3/genlib.c @@ -193,7 +193,7 @@ cstring( return cp; case NC_DOUBLE: - cp_size = 20; + cp_size = 24; cp = (char *) emalloc (cp_size); doublep = (double *)valp; (void) snprintf(cp,cp_size,"%.16g",* (doublep + num));