aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-03 11:11:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-03 11:11:01 +0000
commit90b51831fd2dea9a4c29237e74472eb4735034ef (patch)
treeb148cb029b6829bb1177ee90ebe38bf3b4ff1244 /lib/formdata.c
parent38ed8938d865033affed20ed0dbcf47251403e12 (diff)
Tor Arntsen's fix for "CGI_Lite" compliance!
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 8f8ae3744..08715d5b3 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -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 */