summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod/HDFTests.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2022-04-06 00:50:57 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2022-04-06 00:50:57 (GMT)
commit7e2d23d2a15509c3753d7c8d2571f1360a834087 (patch)
treee4fd90365661429a6042690633dfdbd779ec25bb /config/cmake_ext_mod/HDFTests.c
parent715cf1a29b14abd81b4a03421fc742d6f4542fd0 (diff)
parentda562164ce4defaf84ff98869d317e7751bcc6f3 (diff)
downloadhdf5-7e2d23d2a15509c3753d7c8d2571f1360a834087.zip
hdf5-7e2d23d2a15509c3753d7c8d2571f1360a834087.tar.gz
hdf5-7e2d23d2a15509c3753d7c8d2571f1360a834087.tar.bz2
Merge remote-tracking branch 'canonical/develop' into feature/onion_vfd
Diffstat (limited to 'config/cmake_ext_mod/HDFTests.c')
-rw-r--r--config/cmake_ext_mod/HDFTests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake_ext_mod/HDFTests.c b/config/cmake_ext_mod/HDFTests.c
index c434be5..2b2a202 100644
--- a/config/cmake_ext_mod/HDFTests.c
+++ b/config/cmake_ext_mod/HDFTests.c
@@ -115,8 +115,8 @@ int main(void)
for (currentArg = llwidthArgs; *currentArg != NULL; currentArg++)
{
char formatString[64];
- sprintf(formatString, "%%%sd", *currentArg);
- sprintf(s, formatString, x);
+ snprintf(formatString, sizeof(formatString), "%%%sd", *currentArg);
+ snprintf(s, 128, formatString, x);
if (strcmp(s, "1099511627776") == 0)
{
printf("PRINTF_LL_WIDTH=[%s]\n", *currentArg);