Tor Arntsen's fix for "CGI_Lite" compliance!
authorDaniel Stenberg <daniel@haxx.se>
Wed, 3 Apr 2002 11:11:01 +0000 (11:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Apr 2002 11:11:01 +0000 (11:11 +0000)
lib/formdata.c

index 8f8ae3744c33eba5e4f28d7aa884aca98927bf76..08715d5b38eb7b19c6812e31d402b598c7a705ee 100644 (file)
@@ -982,8 +982,8 @@ char *Curl_FormBoundary(void)
                              the same form won't be identical */
   int i;
 
-  static char table64[]=
-    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+  static char table62[]=
+    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
 
   retstring = (char *)malloc(BOUNDARY_LENGTH);
 
@@ -995,7 +995,7 @@ char *Curl_FormBoundary(void)
   strcpy(retstring, "curl"); /* bonus commercials 8*) */
 
   for(i=4; i<(BOUNDARY_LENGTH-1); i++) {
-    retstring[i] = table64[rand()%64];
+    retstring[i] = table62[rand()%62];
   }
   retstring[BOUNDARY_LENGTH-1]=0; /* zero terminate */