diff options
author | Jaakko Heinonen <jh@FreeBSD.org> | 2010-12-06 09:18:11 +0000 |
---|---|---|
committer | Jaakko Heinonen <jh@FreeBSD.org> | 2010-12-06 09:18:11 +0000 |
commit | cdfc719c2e8b20c0841b8dcb7af77e2c24c5610a (patch) | |
tree | e5df02602d495f7adaea3d902090c89eb17e238c /usr.bin/truss | |
parent | 443a48f0a1d19bafaab525d01de7a35434a95d13 (diff) | |
download | src-test2-cdfc719c2e8b20c0841b8dcb7af77e2c24c5610a.tar.gz src-test2-cdfc719c2e8b20c0841b8dcb7af77e2c24c5610a.zip |
Notes
Diffstat (limited to 'usr.bin/truss')
-rw-r--r-- | usr.bin/truss/syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index 7ef8e1981728..f19553d21674 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -518,7 +518,7 @@ get_string(pid_t pid, void *offset, int max) buf = realloc(buf, totalsize); size = BLOCKSIZE; } else { - buf[totalsize] = '\0'; + buf[totalsize - 1] = '\0'; return (buf); } } |