svn commit: r1935783 - subversion/trunk/subversion/tests/libsvn_subr

[email protected] Wed, 01 Jul 2026 18:26:09 -0000
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <178293036911.3431102.16658872931489009908@svn03-he-fi>
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