diff options
| author | 2003-05-08 21:04:17 +0000 | |
|---|---|---|
| committer | 2003-05-08 21:04:17 +0000 | |
| commit | 0a84d89213c86ca8455c0dd9ba810084fc321b66 (patch) | |
| tree | 1afdf79caeb3d4939fe75a4b98209d3aaced2369 /gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c | |
| parent | Update to 1.6.7p5 (diff) | |
| download | wireguard-openbsd-0a84d89213c86ca8455c0dd9ba810084fc321b66.tar.xz wireguard-openbsd-0a84d89213c86ca8455c0dd9ba810084fc321b66.zip | |
multiple readlink() calls that forgot the -1...
ok millert
Diffstat (limited to 'gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c')
| -rw-r--r-- | gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.c | 2 |
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); |
