diff options
author | jhb <jhb@FreeBSD.org> | 2002-06-07 15:32:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-06-07 15:32:05 +0000 |
commit | 9edd348bde429f86be1b6bdda9538de56e7dc221 (patch) | |
tree | 506b96e1e8aa5d7bae1cefcbc10e247443e6cc91 /usr.sbin/sade/label.c | |
parent | 1e247679d5df1f42c0ee52d013c50e8b20bcd2a9 (diff) | |
download | FreeBSD-src-9edd348bde429f86be1b6bdda9538de56e7dc221.zip FreeBSD-src-9edd348bde429f86be1b6bdda9538de56e7dc221.tar.gz |
Fix a bug where request_part_size() was hard-coded to check the rootSize
variable rather than the one passed in as the first argument.
Sponsored by: The Weather Channel
Diffstat (limited to 'usr.sbin/sade/label.c')
-rw-r--r-- | usr.sbin/sade/label.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c index af273e6..f40f3ae 100644 --- a/usr.sbin/sade/label.c +++ b/usr.sbin/sade/label.c @@ -1155,7 +1155,7 @@ requested_part_size(char *varName, int nom, int def, int perc) char *cp; int sz; - if ((cp = variable_get(VAR_ROOT_SIZE)) != NULL) + if ((cp = variable_get(varName)) != NULL) sz = atoi(cp); else sz = nom + (def - nom) * perc / 100; |