Author: ivan
Date: Wed Jul 1 18:52:24 2026
New Revision: 1935786
Log:
Use apr_snprintf() instead of snprintf() when we do not need localization
support.
* subversion/tests/libsvn_subr/skel-test.c
(): Include <apr_strings.h>
(put_explicit_length): Use apr_snprintf() instead of snprintf()/sprintf().
Modified:
subversion/trunk/subversion/tests/libsvn_subr/skel-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/skel-test.c
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/skel-test.c Wed Jul 1
18:45:04 2026 (r1935785)
+++ subversion/trunk/subversion/tests/libsvn_subr/skel-test.c Wed Jul 1
18:52:24 2026 (r1935786)
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <apr.h>
+#include <apr_strings.h> /* for apr_snprintf */
#include "svn_pools.h"
#include "svn_string.h"
@@ -314,12 +315,7 @@ put_explicit_length(svn_stringbuf_t *str
abort();
/* Generate the length and separator character. */
-#if HAVE_SNPRINTF
- snprintf(buf, sizeof(buf), "%" APR_SIZE_T_FMT "%c", len, sep);
-#else
- sprintf(buf, "%" APR_SIZE_T_FMT "%c", len, sep);
-#endif
-
+ apr_snprintf(buf, sizeof(buf), "%" APR_SIZE_T_FMT "%c", len, sep);
svn_stringbuf_appendcstr(str, buf);
/* Copy in the real data (which may contain nulls). */