strcat should obviously be strcpy here.
authorTom Lane <[email protected]>
Tue, 27 Nov 2001 18:21:51 +0000 (18:21 +0000)
committerTom Lane <[email protected]>
Tue, 27 Nov 2001 18:21:51 +0000 (18:21 +0000)
src/interfaces/libpq/fe-misc.c

index 553567d2abc4df5821b5e018f4388d33cbdc9cf8..c907eb3ce0f475d32303a81fd8920b38b9083b3f 100644 (file)
@@ -854,9 +854,8 @@ libpq_gettext(const char *msgid)
 /*
  * strerror replacement for windows:
  *
- * We dont't know a fix for win9x yet, but this whould work for nt4 and win2k.
+ * We don't know a fix for win9x yet, but this should work for nt4 and win2k.
  * If you can verify this working on win9x or have a solution, let us know, ok?
- *
  */
 const char *
 winsock_strerror(DWORD eno)
@@ -885,7 +884,7 @@ winsock_strerror(DWORD eno)
 
        /* Everything failed, just tell the user that we don't know the desc */
 
-       strcat(winsock_strerror_buf, "Socket error, no description available.");
+       strcpy(winsock_strerror_buf, "Socket error, no description available.");
 
 WSSE_GOODEXIT: