httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r160805 - httpd/apreq/branches/multi-env-unstable/library/util.c
Date Sun, 10 Apr 2005 20:49:03 GMT
Author: joes
Date: Sun Apr 10 13:49:02 2005
New Revision: 160805

URL: http://svn.apache.org/viewcvs?view=rev&rev=160805
Log:
Must set dlen and slen on an incomplete return.

Modified:
    httpd/apreq/branches/multi-env-unstable/library/util.c

Modified: httpd/apreq/branches/multi-env-unstable/library/util.c
URL: http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/util.c?view=diff&r1=160804&r2=160805
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/util.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/util.c Sun Apr 10 13:49:02 2005
@@ -329,6 +329,8 @@
                         *charset = fragment_charset(s+1, end);
                         if (*charset == APREQ_CHARSET_UTF8) {
                             s -= 2;
+                            *dlen = d - start;
+                            *slen = s - src;
                             memmove(d, s, end - s);
                             d[end - s] = 0;
                             return APR_INCOMPLETE;
@@ -352,6 +354,8 @@
                         *charset = fragment_charset(s+1, end);
                         if (*charset == APREQ_CHARSET_UTF8) {
                             s -= 2;
+                            *dlen = d - start;
+                            *slen = s - src;
                             memmove(d, s, end - s);
                             d[end - s] = 0;
                             return APR_INCOMPLETE;
@@ -377,6 +381,8 @@
                         *charset = fragment_charset(s+1, end);
                         if (*charset == APREQ_CHARSET_UTF8) {
                             s -= 2;
+                            *dlen = d - start;
+                            *slen = s - src;
                             memmove(d, s, end - s);
                             d[end - s] = 0;
                             return APR_INCOMPLETE;
@@ -403,6 +409,8 @@
                         *charset = fragment_charset(s+1, end);
                          if (*charset == APREQ_CHARSET_UTF8) {
                              s -= 2;
+                             *dlen = d - start;
+                             *slen = s - src;
                              memmove(d, s, end - s);
                              d[end - s] = 0;
                              return APR_INCOMPLETE;
@@ -430,6 +438,8 @@
                         *charset = fragment_charset(s+1, end);
                         if (*charset == APREQ_CHARSET_UTF8) {
                             s -= 2;
+                            *dlen = d - start;
+                            *slen = s - src;
                             memmove(d, s, end - s);
                             d[end - s] = 0;
                             return APR_INCOMPLETE;



Mime
View raw message