mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 00:32:10 -04: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:
parent
14b0da2ac3
commit
650c175042
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
|||
*
|
||||
*
|
||||
* 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:
|
||||
|
||||
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);
|
||||
|
||||
return winsock_strerror_buf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue