Fix mount dir length calculation
commit0eac60cd9d478774025a10decce835dea42f9ce4
authorDan McGee <dan@archlinux.org>
Fri, 11 Feb 2011 16:34:34 +0000 (11 10:34 -0600)
committerDan McGee <dan@archlinux.org>
Fri, 11 Feb 2011 16:34:37 +0000 (11 10:34 -0600)
treee2cac2e5c675d2ac02157f9db0fce4ff51c8f667
parent06cbb516c35eb81220064878ff202c3107b12c99
Fix mount dir length calculation

In the getmntinfo() section, the local variable mnt doesn't exist; this
would have caused a compile error if I had tested the code on such a
platform. Unify both codepaths to just run strlen() on the already copied
mount path instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/diskspace.c