Commit 1282aad4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

off-by-one for the case when it adds /? and a terminating zero to the URL

parent b8fad99f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3738,7 +3738,7 @@ operate(struct Configurable *config, int argc, char *argv[])
          /*
           * Then append ? followed by the get fields to the url.
           */
          urlbuffer=(char *)malloc(strlen(url) + strlen(httpgetfields) + 2);
          urlbuffer=(char *)malloc(strlen(url) + strlen(httpgetfields) + 3);
          if(!urlbuffer) {
            helpf("out of memory\n");
            return CURLE_OUT_OF_MEMORY;