summaryrefslogtreecommitdiffstats
path: root/test/dtypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dtypes.c')
-rw-r--r--test/dtypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 218c019..f322d03 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -2322,7 +2322,7 @@ test_compound_11(void)
((big_t *)buf)[u].s1 = (char *)HDmalloc((size_t)32);
if (!((big_t *)buf)[u].s1)
TEST_ERROR;
- HDsprintf(((big_t *)buf)[u].s1, "%u", (unsigned)u);
+ HDsnprintf(((big_t *)buf)[u].s1, 32, "%u", (unsigned)u);
} /* end for */
/* Make copy of buffer before conversion */