aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-10 16:29:48 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-10 16:29:48 +0100
commit697392fb49e36ad46274772fd274be6e292f39cb (patch)
tree03ae8c3f1266efb9a444f22fc8487697cf8d3542 /src/mds-kbdc
parentmake it easier to track memory allocations (diff)
downloadmds-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.c1
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: