mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Enable Win32 to compile libpq again, and enable SSL compiles on that
platform. Andreas Pflug
This commit is contained in:
@@ -312,7 +312,7 @@ winsock_strerror(int err, char *strerrbuf, size_t buflen)
|
||||
{
|
||||
strerrbuf[buflen - 1] = '\0';
|
||||
offs = strlen(strerrbuf);
|
||||
if (offs > buflen - 64)
|
||||
if (offs > (int)buflen - 64)
|
||||
offs = buflen - 64;
|
||||
sprintf(strerrbuf + offs, " (0x%08X/%lu)", err, err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user