svn commit: r1925635 - in /apr/apr-util/branches/1.7.x: ./ buckets/apr_brigade.c

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: ivan
Date: Sat May 17 14:51:41 2025
New Revision: 1925635

URL: http://svn.apache.org/viewvc?rev=1925635&view=rev
Log:
Merge r1902194 from apr/trunk:
  apr_brigade: Fix conversion from 'apr_off_t' to 'size_t', possible loss of
  data.

Modified:
    apr/apr-util/branches/1.7.x/   (props changed)
    apr/apr-util/branches/1.7.x/buckets/apr_brigade.c

Propchange: apr/apr-util/branches/1.7.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r1902194

Modified: apr/apr-util/branches/1.7.x/buckets/apr_brigade.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/buckets/apr_brigade.c?rev=1925635&r1=1925634&r2=1925635&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/buckets/apr_brigade.c (original)
+++ apr/apr-util/branches/1.7.x/buckets/apr_brigade.c Sat May 17 14:51:41 2025
@@ -398,7 +398,7 @@ APU_DECLARE(apr_status_t) apr_brigade_sp
                                                      apr_off_t maxbytes)
 {
     apr_off_t outbytes = 0;
-    apr_off_t ignore = 0;
+    apr_size_t ignore = 0;
 
     if (!boundary || !boundary[0]) {
         return APR_EINVAL;
@@ -421,7 +421,7 @@ APU_DECLARE(apr_status_t) apr_brigade_sp
         const char *pos;
         const char *str;
         apr_bucket *e, *next, *prev;
-        apr_off_t inbytes = 0;
+        apr_size_t inbytes = 0;
         apr_size_t len;
         apr_status_t rv;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.