aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2025-11-05 10:06:23 +0800
committerPo Lu2025-11-05 10:06:23 +0800
commitabcc099c732489354f8f2be70b9a919fffeb3d84 (patch)
treea7d8956197dfbd97296fa780a789d46389cc28e1 /src
parent6ab56a31a52903e78da72e1122a72411a533e682 (diff)
downloademacs-abcc099c732489354f8f2be70b9a919fffeb3d84.tar.gz
emacs-abcc099c732489354f8f2be70b9a919fffeb3d84.zip
Fix the MS-DOS port and reading of symlink targets
* doc/misc/eglot.texi (Eglot Features): Add comma after @xref. * msdos/sed2v2.inp (GNULIB_ISSYMLINK): Define to 1. * msdos/sedlibmk.inp (HAVE_RANDOM_H): Undefine, in line with its deletion from gnulib.mk. (GL_GNULIB_STRINGEQ): Define to 1. * src/msdos.c (careadlinkat): NULL terminate at the end of the data written, not one character beyond the same.
Diffstat (limited to 'src')
-rw-r--r--src/msdos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msdos.c b/src/msdos.c
index ec36d0b2df3..0563e9b2422 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -3996,12 +3996,12 @@ careadlinkat (int fd, char const *filename,
3996 } 3996 }
3997 else 3997 else
3998 { 3998 {
3999 ssize_t len = preadlinkat (fd, filename, buffer, buffer_size); 3999 ssize_t len = (*preadlinkat) (fd, filename, buffer, buffer_size);
4000 4000
4001 if (len < 0 || len == buffer_size) 4001 if (len < 0 || len == buffer_size)
4002 buffer = NULL; 4002 buffer = NULL;
4003 else 4003 else
4004 buffer[len + 1] = '\0'; 4004 buffer[len] = '\0';
4005 } 4005 }
4006 return buffer; 4006 return buffer;
4007} 4007}