From 06d47a94407f97c7758d872cd76157b79c5cf8a6 Mon Sep 17 00:00:00 2001 From: Vincent Labrecque Date: Thu, 8 May 2003 21:04:18 +0000 Subject: multiple readlink() calls that forgot the -1... ok millert --- gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c index ee8da85d810..40fa3826bac 100644 --- a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c +++ b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c @@ -274,7 +274,7 @@ PRIVATE void LYListFmtParse ARGS5( *buf = '\0'; #ifdef S_IFLNK if (c != 'A' && S_ISLNK(st.st_mode) && - (len = readlink(file, tmp, sizeof(tmp))) >= 0) { + (len = readlink(file, tmp, sizeof(tmp) - 1)) >= 0) { PUTS(" -> "); tmp[len] = '\0'; PUTS(tmp); -- cgit v1.2.3