httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r219284 - /httpd/apreq/trunk/library/util.c
Date Sat, 16 Jul 2005 03:02:06 GMT
Author: joes
Date: Fri Jul 15 20:02:06 2005
New Revision: 219284

URL: http://svn.apache.org/viewcvs?rev=219284&view=rev
Log:

Remove superfluous length check.

Modified:
    httpd/apreq/trunk/library/util.c

Modified: httpd/apreq/trunk/library/util.c
URL: http://svn.apache.org/viewcvs/httpd/apreq/trunk/library/util.c?rev=219284&r1=219283&r2=219284&view=diff
==============================================================================
--- httpd/apreq/trunk/library/util.c (original)
+++ httpd/apreq/trunk/library/util.c Fri Jul 15 20:02:06 2005
@@ -350,15 +350,6 @@
                 else if (*charset == APREQ_CHARSET_LATIN1) {
                     *d = c;
                 }
-                else if (s + 1 >= end) {
-                    *charset = APREQ_CHARSET_UTF8;
-                    s -= 2;
-                    *dlen = d - start;
-                    *slen = s - src;
-                    memmove(d, s, end - s);
-                    d[end - s] = 0;
-                    return APR_INCOMPLETE;
-                }
 
                 /* utf8 cases */
 



Mime
View raw message