Skip to content

Commit b3ff03b

Browse files
committed
strcat should obviously be strcpy here.
1 parent 0f74fb7 commit b3ff03b

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-
* We dont't know a fix for win9x yet, but this whould work for nt4 and win2k.
857+
* We don't know a fix for win9x yet, but this should 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
const char *
862861
winsock_strerror(DWORD eno)
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy