]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lib-src/emacsclient.c (local_sockname): Whitespace.
authorEli Zaretskii <eliz@gnu.org>
Tue, 7 May 2024 11:24:40 +0000 (14:24 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 8 May 2024 16:52:37 +0000 (18:52 +0200)
(cherry picked from commit a06b365cbf8c1b12f785ad0988cb27b26c1ab463)

lib-src/emacsclient.c

index bee95e2bd5cbdeb0946d7fd41af693d63ea3ab5a..79db1ef2f47fc2259704392fa14dc50ab77d2ac5 100644 (file)
@@ -1461,7 +1461,7 @@ local_sockname (int s, char sockname[socknamesize], int tmpdirlen,
      fends off some symlink attacks.  To avoid races, keep the parent
      directory open while checking.  */
   char *emacsdirend = (sockname + tmpdirlen + suffixlen
-                      - strlen(server_name) - 1);
+                      - strlen (server_name) - 1);
   *emacsdirend = '\0';
   int dir = open (sockname, O_PATH | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
   *emacsdirend = '/';