Author: ivan
Date: Wed Jul  1 18:26:08 2026
New Revision: 1935783

Log:
Follow-up to r1935782: fix compilation.

* subversion/tests/libsvn_subr/skel-test.c
  (put_explicit_length): Use sizeof(buf) in call to snprintf().

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:18:30 2026        (r1935782)
+++ subversion/trunk/subversion/tests/libsvn_subr/skel-test.c   Wed Jul  1 
18:26:08 2026        (r1935783)
@@ -315,7 +315,7 @@ put_explicit_length(svn_stringbuf_t *str
 
   /* Generate the length and separator character.  */
 #if HAVE_SNPRINTF
-  snprintf(buf, alloc_len, "%" APR_SIZE_T_FMT "%c", len, sep);
+  snprintf(buf, sizeof(buf), "%" APR_SIZE_T_FMT "%c", len, sep);
 #else
   sprintf(buf, "%" APR_SIZE_T_FMT "%c", len, sep);
 #endif

Reply via email to