btrfs-progs: use proper size for argv0 substitution
authorDavid Sterba <dsterba@suse.cz>
Tue, 18 Nov 2014 17:05:20 +0000 (18:05 +0100)
committerDavid Sterba <dsterba@suse.cz>
Tue, 18 Nov 2014 17:05:20 +0000 (18:05 +0100)
commit5ebf59ff5852dd4f37d99ab4e49fef1c579d6665
tree00b25fda52adddd8319ae8a859f56189f816f1e5
parenta1c3bcf1c294909801dbc23e77cac895dd14c41e
btrfs-progs: use proper size for argv0 substitution

Make run from a long base path will overflow the argv0 buffer during
tests. Otherwise, this would happen for all the standalone binaries that
use set_argv0.

Original report:
https://bbs.archlinux.org/viewtopic.php?id=189861

Reported-by: WorMzy Tykashi <wormzy.tykashi@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
utils.c
utils.h