diff options
Diffstat (limited to 'usr.sbin/bind/bin/tests/rwlock_test.c')
-rw-r--r-- | usr.sbin/bind/bin/tests/rwlock_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/bin/tests/rwlock_test.c b/usr.sbin/bind/bin/tests/rwlock_test.c index cc6629a87ff..ff24875f7cb 100644 --- a/usr.sbin/bind/bin/tests/rwlock_test.c +++ b/usr.sbin/bind/bin/tests/rwlock_test.c @@ -107,7 +107,7 @@ main(int argc, char *argv[]) { RUNTIME_CHECK(isc_rwlock_init(&lock, 5, 10) == ISC_R_SUCCESS); for (i = 0; i < nworkers; i++) { - sprintf(name, "%02u", i); + snprintf(name, sizeof(name), "%02u", i); dupname = strdup(name); RUNTIME_CHECK(dupname != NULL); if (i != 0 && i % 3 == 0) |