1
0
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:
Bruce Momjian
2003-09-05 02:08:36 +00:00
parent 1709fde56a
commit 2dc9437160
6 changed files with 60 additions and 28 deletions

View File

@@ -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);
}