diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-09-04 07:22:45 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-09-04 07:22:45 (GMT) |
| commit | cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae (patch) | |
| tree | e80d5f727d70e081a7dc7285b869d914aa1eb186 /unix/tclUnixFCmd.c | |
| parent | 435d3e8bb7341fc7e943e0bc35081dfd7605b16a (diff) | |
| download | tcl-cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae.zip tcl-cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae.tar.gz tcl-cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae.tar.bz2 | |
Fix 3 trivial (possible) errors, discovered by covertity.com
Diffstat (limited to 'unix/tclUnixFCmd.c')
| -rw-r--r-- | unix/tclUnixFCmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index e27f78f..e270b6a 100644 --- a/unix/tclUnixFCmd.c +++ b/unix/tclUnixFCmd.c @@ -462,10 +462,10 @@ DoCopyFile( switch ((int) (statBufPtr->st_mode & S_IFMT)) { #ifndef DJGPP case S_IFLNK: { - char linkBuf[MAXPATHLEN]; + char linkBuf[MAXPATHLEN+1]; int length; - length = readlink(src, linkBuf, sizeof(linkBuf)); + length = readlink(src, linkBuf, MAXPATHLEN); /* INTL: Native. */ if (length == -1) { return TCL_ERROR; |
