summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2003-05-08 21:04:18 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2003-05-08 21:04:18 +0000
commit06d47a94407f97c7758d872cd76157b79c5cf8a6 (patch)
tree86d312612fe0eaf6d1af26634397d03d5d8617b0 /gnu/usr.bin
parent92123554d19cb1b6fc10adb7a5118fc02e564f19 (diff)
multiple readlink() calls that forgot the -1...
ok millert
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c2
1 files changed, 1 insertions, 1 deletions
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);