We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49fc519 commit 4b31539Copy full SHA for 4b31539
su.c
@@ -24,7 +24,7 @@
24
25
#include <sqlite3.h>
26
27
-extern char* _mktemp(char*); /* mktemp doesn't link right. Don't ask me why. */
+//extern char* _mktemp(char*); /* mktemp doesn't link right. Don't ask me why. */
28
29
#include "su.h"
30
@@ -146,7 +146,7 @@ static int socket_create_temp()
146
memset(&sun, 0, sizeof(sun));
147
sun.sun_family = AF_LOCAL;
148
strcpy(socket_path_buf, socket_path_template);
149
- socket_path = _mktemp(socket_path_buf);
+ socket_path = mktemp(socket_path_buf);
150
snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", socket_path);
151
152
if (bind(fd, (struct sockaddr*)&sun, sizeof(sun)) < 0) {
0 commit comments