diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-10-14 13:28:59 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-10-14 13:28:59 +0000 |
commit | d94f7324aae76e85fa60f3a3146c4caa8e8aa299 (patch) | |
tree | bc3a294739bcaf37479d9e44a923de4197766cbe /loader2/hdinstall.c | |
parent | 7d7e5bac325cb828a3310fc06aabbdfaa1451615 (diff) | |
download | anaconda-d94f7324aae76e85fa60f3a3146c4caa8e8aa299.tar.gz anaconda-d94f7324aae76e85fa60f3a3146c4caa8e8aa299.tar.xz anaconda-d94f7324aae76e85fa60f3a3146c4caa8e8aa299.zip |
2004-10-14 Jeremy Katz <katzj@redhat.com>
* loader2/hdinstall.c: Fix segfault when using biospart for hard
drive kickstart install. Patch from Rez Kabir (#135609)
Diffstat (limited to 'loader2/hdinstall.c')
-rw-r--r-- | loader2/hdinstall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c index 27621590d..6ab7baafa 100644 --- a/loader2/hdinstall.c +++ b/loader2/hdinstall.c @@ -488,8 +488,8 @@ void setKickstartHD(struct loaderData_s * loaderData, int argc, logMessage("Unable to location BIOS partition %s", biospart); return; } - partition = malloc(strlen(dev) + strlen(p) + 2); - sprintf(partition, "%s%s", dev, p); + partition = malloc(strlen(dev) + strlen(p + 1) + 2); + sprintf(partition, "%s%s", dev, p + 1); } loaderData->method = strdup("hd"); |