diff options
author | Curl Upstream <curl-library@lists.haxx.se> | 2023-10-11 05:34:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-12 19:28:57 (GMT) |
commit | e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01 (patch) | |
tree | f0d748647eebb0b8ba55e478ea35c8686dbd1485 /lib/mime.c | |
parent | 017637e40f954e791a895a04855d0411bda61c10 (diff) | |
download | CMake-e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01.zip CMake-e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01.tar.gz CMake-e6a6c1abc1e6b6e3ca9fa77947279509b55e2b01.tar.bz2 |
curl 2023-10-11 (d755a5f7)
Code extracted from:
https://github.com/curl/curl.git
at commit d755a5f7c009dd63a61b2c745180d8ba937cbfeb (curl-8_4_0).
Diffstat (limited to 'lib/mime.c')
-rw-r--r-- | lib/mime.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1289,9 +1289,9 @@ curl_mime *curl_mime_init(struct Curl_easy *easy) mime->lastpart = NULL; memset(mime->boundary, '-', MIME_BOUNDARY_DASHES); - if(Curl_rand_hex(easy, - (unsigned char *) &mime->boundary[MIME_BOUNDARY_DASHES], - MIME_RAND_BOUNDARY_CHARS + 1)) { + if(Curl_rand_alnum(easy, + (unsigned char *) &mime->boundary[MIME_BOUNDARY_DASHES], + MIME_RAND_BOUNDARY_CHARS + 1)) { /* failed to get random separator, bail out */ free(mime); return NULL; |