1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

winsock_strerror crashed on me. This fixes a line of code that looks

cleverer than it actually is ;-) Braces are good for you :-)

Gerhard HÌring
This commit is contained in:
Tom Lane
2001-09-30 16:23:30 +00:00
parent 14b0da2ac3
commit 650c175042

View File

@ -25,7 +25,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.56 2001/09/06 04:57:30 ishii Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.57 2001/09/30 16:23:30 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -892,7 +892,7 @@ winsock_strerror(DWORD eno)
WSSE_GOODEXIT: WSSE_GOODEXIT:
length = strlen(winsock_strerror_buf); length = strlen(winsock_strerror_buf);
sprintf(winsock_strerror_buf + length<WSSE_MAXLEN?length:WSSE_MAXLEN, sprintf(winsock_strerror_buf + (length<WSSE_MAXLEN?length:WSSE_MAXLEN),
"(0x%08X)",eno); "(0x%08X)",eno);
return winsock_strerror_buf; return winsock_strerror_buf;