提交 650c1750 编写于 作者: T Tom Lane

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
上级 14b0da2a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册