diff options
author | Sean McBride <sean@rogue-research.com> | 2022-01-28 16:34:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 16:34:57 (GMT) |
commit | b5eed1b56324fc07154c2e2d8251d2b87505ca23 (patch) | |
tree | b3e3840a886966ae07e50a69ab7492ebe4df876c /configure.ac | |
parent | 44de59b642c4d5ccf505a1072d10b63dc9fe0628 (diff) | |
download | hdf5-b5eed1b56324fc07154c2e2d8251d2b87505ca23.zip hdf5-b5eed1b56324fc07154c2e2d8251d2b87505ca23.tar.gz hdf5-b5eed1b56324fc07154c2e2d8251d2b87505ca23.tar.bz2 |
Replaced several uses of sprintf with safer snprintf (#1383)
* Replaced several uses of sprintf with safer snprintf
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 8d7f359..4cf329c 100644 --- a/configure.ac +++ b/configure.ac @@ -2154,7 +2154,7 @@ for hdf5_cv_printf_ll in ll l L q unknown; do ],[[ char *s = malloc(128); long long x = (long long)1048576 * (long long)1048576; - sprintf(s,"%${hdf5_cv_printf_ll}d",x); + snprintf(s,128,"%${hdf5_cv_printf_ll}d",x); exit(strcmp(s,"1099511627776")); ]])] , [break],,[continue]) |