summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-03-11 19:10:20 (GMT)
committerGitHub <noreply@github.com>2022-03-11 19:10:20 (GMT)
commit1f9228316c3177fa632979fa89e8753d35770efb (patch)
tree6cc848902106047614c3136ec063e25af1696e3f /tools/lib
parent01209d277767cc66d11d4c1ef874ed493000f78c (diff)
downloadhdf5-1f9228316c3177fa632979fa89e8753d35770efb.zip
hdf5-1f9228316c3177fa632979fa89e8753d35770efb.tar.gz
hdf5-1f9228316c3177fa632979fa89e8753d35770efb.tar.bz2
Fixes for format string warnings raised by -Wformat=2/-Wformat-security (#1489)
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 7ad6a65..5976044 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -1051,7 +1051,7 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
H5TOOLS_DEBUG("H5T_ENUM");
if (H5Tenum_nameof(type, vp, enum_name, sizeof enum_name) >= 0)
- h5tools_str_append(str, h5tools_escape(enum_name, sizeof(enum_name)));
+ h5tools_str_append(str, "%s", h5tools_escape(enum_name, sizeof(enum_name)));
else {
size_t i;
if (1 == nsize)