Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit650c175

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 parent14b0da2 commit650c175

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:30ishii Exp $
28+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.57 2001/09/30 16:23:30tgl 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
returnwinsock_strerror_buf;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp