diff options
Diffstat (limited to 'test/lheap.c')
-rw-r--r-- | test/lheap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lheap.c b/test/lheap.c index 1c6a6df..c9c6ca9 100644 --- a/test/lheap.c +++ b/test/lheap.c @@ -97,7 +97,7 @@ main(void) goto error; } for (i = 0; i < NOBJS; i++) { - HDsprintf(buf, "%03d-", i); + HDsnprintf(buf, sizeof(buf), "%03d-", i); for (j = 4; j < i; j++) buf[j] = (char)('0' + j % 10); if (j > 4) @@ -137,7 +137,7 @@ main(void) goto error; } for (i = 0; i < NOBJS; i++) { - HDsprintf(buf, "%03d-", i); + HDsnprintf(buf, sizeof(buf), "%03d-", i); for (j = 4; j < i; j++) buf[j] = (char)('0' + j % 10); if (j > 4) |