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
This commit is contained in:
John Baldwin 2002-06-07 15:32:05 +00:00
parent a1e85ec6fb
commit 2a0eb0b58c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;