diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-21 21:38:38 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-21 21:38:38 +0000 |
commit | e0ac4f5fe723dae5ff9e639384ba416597f0f300 (patch) | |
tree | 1a093fbd13b05ae8058088389f6b3e7414fd40b9 /util.c | |
parent | 62e06c6283f9b55d708fe714971a4425de79a9fb (diff) | |
download | perl-e0ac4f5fe723dae5ff9e639384ba416597f0f300.tar.gz |
Off-by-one. I'm so classic.
p4raw-id: //depot/perl@10801
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3616,7 +3616,7 @@ Perl_sv_getcwd(pTHX_ register SV *sv) SvPOK_off(sv); New(0, buf, MAXPATHLEN, char); if (buf) { - buf[MAXPATHLEN] = 0; + buf[MAXPATHLEN - 1] = 0; /* Yes, some getcwd()s automatically allocate a buffer * if given a NULL one. Portability is the problem. * XXX Configure probe needed. */ |