Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 650c175

Browse files
committed
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
1 parent 14b0da2 commit 650c175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-misc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
*
2727
* IDENTIFICATION
28-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.56 2001/09/06 04:57:30 ishii Exp $
28+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.57 2001/09/30 16:23:30 tgl Exp $
2929
*
3030
*-------------------------------------------------------------------------
3131
*/
@@ -892,7 +892,7 @@ winsock_strerror(DWORD eno)
892892
WSSE_GOODEXIT:
893893

894894
length = strlen(winsock_strerror_buf);
895-
sprintf(winsock_strerror_buf + length<WSSE_MAXLEN?length:WSSE_MAXLEN,
895+
sprintf(winsock_strerror_buf + (length<WSSE_MAXLEN?length:WSSE_MAXLEN),
896896
"(0x%08X)",eno);
897897

898898
return winsock_strerror_buf;

0 commit comments

Comments
 (0)