diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsserver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/emacsserver.c b/lib-src/emacsserver.c index ba3fa08476e..00bf923bf52 100644 --- a/lib-src/emacsserver.c +++ b/lib-src/emacsserver.c | |||
| @@ -251,8 +251,8 @@ main (argc, argv) | |||
| 251 | server.sun_family = AF_UNIX; | 251 | server.sun_family = AF_UNIX; |
| 252 | #ifndef SERVER_HOME_DIR | 252 | #ifndef SERVER_HOME_DIR |
| 253 | gethostname (system_name, sizeof (system_name)); | 253 | gethostname (system_name, sizeof (system_name)); |
| 254 | /* system_name must be null-terminated string */ | 254 | /* system_name must be null-terminated string */ |
| 255 | system_name[sizeof (system_name) - 1] = '\0'; | 255 | system_name[sizeof (system_name) - 1] = '\0'; |
| 256 | sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); | 256 | sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); |
| 257 | 257 | ||
| 258 | if (unlink (server.sun_path) == -1 && errno != ENOENT) | 258 | if (unlink (server.sun_path) == -1 && errno != ENOENT) |