mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
netrc: use a larger buffer
... to work with longer passwords etc. Grow it from a 256 to a 4096 bytes buffer. Reported-by: Dario Nieuwenhuis Fixes #2676 Closes #2680
This commit is contained in:
parent
b6a16afa0a
commit
a3b7cb7e84
@ -5,7 +5,7 @@
|
|||||||
* | (__| |_| | _ <| |___
|
* | (__| |_| | _ <| |___
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
*
|
*
|
||||||
* This software is licensed as described in the file COPYING, which
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
@ -115,7 +115,7 @@ int Curl_parsenetrc(const char *host,
|
|||||||
char *tok;
|
char *tok;
|
||||||
char *tok_buf;
|
char *tok_buf;
|
||||||
bool done = FALSE;
|
bool done = FALSE;
|
||||||
char netrcbuffer[256];
|
char netrcbuffer[4096];
|
||||||
int netrcbuffsize = (int)sizeof(netrcbuffer);
|
int netrcbuffsize = (int)sizeof(netrcbuffer);
|
||||||
|
|
||||||
while(!done && fgets(netrcbuffer, netrcbuffsize, file)) {
|
while(!done && fgets(netrcbuffer, netrcbuffsize, file)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user