← Commit list

e894699c1e

Daniel Stenberg
Daniel Stenberg
2026-03-17
SUCCESS Duration: 262s

Subject

strerr: correct the strerror_s() return code condition

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curlx/strerr.c+1 -1
@@ -263,7 +263,7 @@ const char *curlx_strerror(int err, char *buf, size_t buflen)
*buf = '\0';
#ifdef _WIN32
- if((!strerror_s(buf, buflen, err) || !strcmp(buf, "Unknown error")) &&
+ if((strerror_s(buf, buflen, err) || !strcmp(buf, "Unknown error")) &&
#ifdef USE_WINSOCK
!get_winsock_error(err, buf, buflen) &&
#endif