diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-10 16:29:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-10 16:29:48 +0100 |
commit | 697392fb49e36ad46274772fd274be6e292f39cb (patch) | |
tree | 03ae8c3f1266efb9a444f22fc8487697cf8d3542 /src/mds-kbdc | |
parent | make it easier to track memory allocations (diff) | |
download | mds-697392fb49e36ad46274772fd274be6e292f39cb.tar.gz mds-697392fb49e36ad46274772fd274be6e292f39cb.tar.bz2 mds-697392fb49e36ad46274772fd274be6e292f39cb.tar.xz |
mds-kbdc: fix memory exhaustion bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-kbdc')
-rw-r--r-- | src/mds-kbdc/paths.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mds-kbdc/paths.c b/src/mds-kbdc/paths.c index 031083e..7ef8af5 100644 --- a/src/mds-kbdc/paths.c +++ b/src/mds-kbdc/paths.c @@ -48,6 +48,7 @@ char* curpath(void) else fail_if (errno != ERANGE); } + cwd_size >>= 1; return cwd; fail: |