httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: I WANT A GA release
Date Fri, 05 Apr 2002 19:20:00 GMT
Try this:
--- apr_cpystrn.c.bak   Fri Apr  5 14:17:32 2002
+++ apr_cpystrn.c       Fri Apr  5 14:19:23 2002
@@ -171,7 +171,9 @@
     while (*ct != '\0') {
         CHECK_QUOTATION(ct, isquoted);
         DETERMINE_NEXTSTRING(ct, isquoted);
-        ct++;
+        if (*ct != '\0') {
+            ct++;
+        }
         numargs++;
         SKIP_WHITESPACE(ct);
     }
@@ -183,7 +185,9 @@
         CHECK_QUOTATION(cp, isquoted);
         ct = cp;
         DETERMINE_NEXTSTRING(cp, isquoted);
-        cp++;
+        if (*cp != '\0') {
+            cp++;
+        }
         (*argv_out)[numargs] = apr_palloc(token_context, cp - ct);
         apr_cpystrn((*argv_out)[numargs], ct, cp - ct);
         numargs++;

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message