diff options
author | Motoyuki Konno <motoyuki@FreeBSD.org> | 1998-10-09 14:51:07 +0000 |
---|---|---|
committer | Motoyuki Konno <motoyuki@FreeBSD.org> | 1998-10-09 14:51:07 +0000 |
commit | cd9bb79ba7b384694d326ac2d57a59e0aae542a9 (patch) | |
tree | e2d3d86241bd386ac74189120c2bdd5331dd7c9f /textproc/coco | |
parent | e3893c29585b9cb9aae1083e2e675386f2bb0cf6 (diff) | |
download | ports-cd9bb79ba7b384694d326ac2d57a59e0aae542a9.tar.gz ports-cd9bb79ba7b384694d326ac2d57a59e0aae542a9.zip |
Notes
Diffstat (limited to 'textproc/coco')
-rw-r--r-- | textproc/coco/files/patch-ba | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/textproc/coco/files/patch-ba b/textproc/coco/files/patch-ba new file mode 100644 index 000000000000..c9f637aa3ba4 --- /dev/null +++ b/textproc/coco/files/patch-ba @@ -0,0 +1,22 @@ +--- lib-src/emacsclient.c.old Tue Jul 23 23:18:33 1996 ++++ lib-src/emacsclient.c Thu Oct 8 22:34:54 1998 +@@ -94,6 +94,8 @@ + struct stat statbfr; + + gethostname (system_name, sizeof (system_name)); ++ system_name[sizeof (system_name) - 1] = '\0'; ++ /* system_name must be null-terminated string */ + sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); + + if (stat (server.sun_path, &statbfr) == -1) +--- lib-src/emacsserver.c.old Wed Jul 17 07:09:29 1996 ++++ lib-src/emacsserver.c Thu Oct 8 22:35:08 1998 +@@ -115,6 +115,8 @@ + server.sun_family = AF_UNIX; + #ifndef SERVER_HOME_DIR + gethostname (system_name, sizeof (system_name)); ++ system_name[sizeof (system_name) - 1] = '\0'; ++ /* system_name must be null-terminated string */ + sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name); + + if (unlink (server.sun_path) == -1 && errno != ENOENT) |