diff options
author | Ivan Zhakov <ivan@apache.org> | 2022-02-09 10:39:35 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2022-02-09 10:39:35 +0000 |
commit | 0ef545062eda29eb0db5f49e11ca4fec3e038529 (patch) | |
tree | 7e8a150c4e114f40c21af7dc5a9cb04a7033e9d4 /test/testbuckets.c | |
parent | 011f944967c77b5608eaebf4cdc1947b7340d804 (diff) | |
parent | 89682a8e2e5eb498b6c4e4ff162052c7e2406a0b (diff) | |
download | apr-0ef545062eda29eb0db5f49e11ca4fec3e038529.tar.gz |
On 'win32-pollset-wakeup-no-file-socket-emulation' branch: Merge changes fromwin32-pollset-wakeup-no-file-socket-emulation
trunk.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/win32-pollset-wakeup-no-file-socket-emulation@1897894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testbuckets.c')
-rw-r--r-- | test/testbuckets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testbuckets.c b/test/testbuckets.c index 2b789f1a0..3957f0e2d 100644 --- a/test/testbuckets.c +++ b/test/testbuckets.c @@ -100,12 +100,12 @@ static void flatten_match(abts_case *tc, const char *ctx, apr_size_t len = elen; char msg[200]; - sprintf(msg, "%s: flatten brigade", ctx); + apr_snprintf(msg, sizeof msg, "%s: flatten brigade", ctx); APR_ASSERT_SUCCESS(tc, msg, apr_brigade_flatten(bb, buf, &len)); - sprintf(msg, "%s: length match (%ld not %ld)", ctx, - (long)len, (long)elen); + apr_snprintf(msg, sizeof msg, "%s: length match (%ld not %ld)", ctx, + (long)len, (long)elen); ABTS_ASSERT(tc, msg, len == elen); - sprintf(msg, "%s: result match", ctx); + apr_snprintf(msg, sizeof msg, "%s: result match", ctx); ABTS_STR_NEQUAL(tc, expect, buf, len); free(buf); } |