diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-06-23 21:32:22 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-06-23 21:33:18 +0200 |
commit | 809d422eeac151b094d6a0f42bb8f580b5b803f4 (patch) | |
tree | 71410a99175a1bb22a8c63ecd2d897e0605ffd84 | |
parent | 146178a9df83de1cfc345771b4c6eceb21ea700e (diff) | |
download | curl-bagder/netrc-larger-buffer.tar.gz |
netrc: use a larger bufferbagder/netrc-larger-buffer
... to work with longer passwords etc.
Fixes #2676
-rw-r--r-- | lib/netrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/netrc.c b/lib/netrc.c index dbcc59ac9..a407bdaac 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -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 * 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_buf; bool done = FALSE; - char netrcbuffer[256]; + char netrcbuffer[4096]; int netrcbuffsize = (int)sizeof(netrcbuffer); while(!done && fgets(netrcbuffer, netrcbuffsize, file)) { |