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

Commitb3ff03b

Browse files
committed
strcat should obviously be strcpy here.
1 parent0f74fb7 commitb3ff03b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/interfaces/libpq/fe-misc.c

Lines changed: 3 additions & 4 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.62 2001/11/08 20:37:52 momjian Exp $
28+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.63 2001/11/27 18:21:51 tgl Exp $
2929
*
3030
*-------------------------------------------------------------------------
3131
*/
@@ -854,9 +854,8 @@ libpq_gettext(const char *msgid)
854854
/*
855855
* strerror replacement for windows:
856856
*
857-
* Wedont't know a fix for win9x yet, but thiswhould work for nt4 and win2k.
857+
* Wedon't know a fix for win9x yet, but thisshould work for nt4 and win2k.
858858
* If you can verify this working on win9x or have a solution, let us know, ok?
859-
*
860859
*/
861860
constchar*
862861
winsock_strerror(DWORDeno)
@@ -885,7 +884,7 @@ winsock_strerror(DWORD eno)
885884

886885
/* Everything failed, just tell the user that we don't know the desc */
887886

888-
strcat(winsock_strerror_buf,"Socket error, no description available.");
887+
strcpy(winsock_strerror_buf,"Socket error, no description available.");
889888

890889
WSSE_GOODEXIT:
891890

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp