s/tempnam/mkstemp/ in error message to reflect actual usage.

This commit is contained in:
dmiller 2013-09-27 14:43:26 +00:00
parent e18b25bccd
commit db6f6ea069

View file

@ -561,7 +561,7 @@ int ncat_connect(void)
char *tmp_name = NULL;
/* If no source socket was specified, we have to create temporary one. */
if ((tmp_name = tempfile(NULL, "ncat.")) == NULL)
bye("Failed to create name for temporary DGRAM source Unix domain socket (tempnam).");
bye("Failed to create name for temporary DGRAM source Unix domain socket (mkstemp).");
srcaddr.un.sun_family = AF_UNIX;
strncpy(srcaddr.un.sun_path, tmp_name, sizeof(srcaddr.un.sun_path));