Skip to content
Browse files

strerror: Increase STRERROR_LEN 128 -> 256

STRERROR_LEN is the constant used throughout the library to set the size
of the buffer on the stack that the curl strerror functions write to.

Prior to this change some extended length Windows error messages could
be truncated.

Closes #4920
  • Loading branch information
jay committed Feb 12, 2020
1 parent 4d1aa8d commit 1c4fa67e8a8fcf65f90470c0db2a25c81735a06c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/strerror.h
@@ -24,7 +24,7 @@

#include "urldata.h"

#define STRERROR_LEN 128 /* a suitable length */
#define STRERROR_LEN 256 /* a suitable length */

const char *Curl_strerror(int err, char *buf, size_t buflen);
#if defined(WIN32) || defined(_WIN32_WCE)

0 comments on commit 1c4fa67

Please sign in to comment.
You can’t perform that action at this time.