mirror of
https://github.com/nmap/nmap.git
synced 2026-06-25 10:38:02 +00:00
s/tempnam/mkstemp/ in error message to reflect actual usage.
This commit is contained in:
parent
e18b25bccd
commit
db6f6ea069
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue