summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-20 14:03:20 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-20 14:03:20 +0000
commit97dcea33347a88fd451a9b2e4f27b9d77c268b94 (patch)
tree5beffd4ac432a996098e9f03decf0a42b4769655 /pp_sys.c
parentb62e3068b8477412c1bf4f7b95e7ddafa8c143a1 (diff)
downloadperl-97dcea33347a88fd451a9b2e4f27b9d77c268b94.tar.gz
Security tweak on readlink().
p4raw-id: //depot/perl@10753
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index c3b34c6979..b95875b33d 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3515,7 +3515,7 @@ PP(pp_readlink)
TAINT;
#endif
tmps = POPpx;
- len = readlink(tmps, buf, sizeof buf);
+ len = readlink(tmps, buf, sizeof(buf) - 1);
EXTEND(SP, 1);
if (len < 0)
RETPUSHUNDEF;