diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-15 18:11:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-15 18:11:51 +0100 |
commit | 384b0ada7d821f3797bf5d72dcf096032d662193 (patch) | |
tree | 213d2158f4df8b8d0f03ae3665a2b3024f3807f8 /pathtrace.c | |
parent | 29865e77e6eee0c380befd0ce53657b5604975ef (diff) | |
download | strace-384b0ada7d821f3797bf5d72dcf096032d662193.tar.gz |
Fix array size calculation in previous commit
* pathtrace.c (getfdpath): Fix array size calculation.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'pathtrace.c')
-rw-r--r-- | pathtrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathtrace.c b/pathtrace.c index ab2c69f2..d50b268f 100644 --- a/pathtrace.c +++ b/pathtrace.c @@ -110,7 +110,7 @@ const char * getfdpath(struct tcb *tcp, int fd) { static char path[PATH_MAX+1]; - char linkpath[sizeof("/proc/%u/fd/%u") + 2 * sizeof(int)]; + char linkpath[sizeof("/proc/%u/fd/%u") + 2 * sizeof(int)*3]; ssize_t n; if (fd < 0) |