mirror of
https://github.com/reactos/CMake.git
synced 2025-02-07 20:38:49 +00:00
COMP: Fix C build problem in certain conditions
This commit is contained in:
parent
f47690ecaa
commit
84f04477b2
@ -547,12 +547,14 @@ const char *Curl_strerror(struct connectdata *conn, int err)
|
||||
}
|
||||
#endif /* end of HAVE_GLIBC_STRERROR_R */
|
||||
#else /* HAVE_STRERROR_R */
|
||||
char *msg = strerror(err);
|
||||
if ( !msg )
|
||||
{
|
||||
msg = "Unknown System Error";
|
||||
}
|
||||
strncpy(buf, msg, max);
|
||||
{
|
||||
char *msg = strerror(err);
|
||||
if ( !msg )
|
||||
{
|
||||
msg = "Unknown System Error";
|
||||
}
|
||||
strncpy(buf, msg, max);
|
||||
}
|
||||
#endif /* end of HAVE_STRERROR_R */
|
||||
#endif /* end of ! Windows */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user