diff options
author | Peter Jones <pjones@redhat.com> | 2007-10-22 15:15:29 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-10-22 15:15:29 +0000 |
commit | 8c7f2368b4d3cd015c4a6454bcfa14ff9f278af7 (patch) | |
tree | 499a483e2294c71bfc70d92a2d25f389e22d85a6 /loader2/hdinstall.c | |
parent | 93139b6f22d354f212953071337d9c45ebc412b3 (diff) | |
download | anaconda-8c7f2368b4d3cd015c4a6454bcfa14ff9f278af7.tar.gz anaconda-8c7f2368b4d3cd015c4a6454bcfa14ff9f278af7.tar.xz anaconda-8c7f2368b4d3cd015c4a6454bcfa14ff9f278af7.zip |
- remove sdupprintf(), use asprintf() instead.
Diffstat (limited to 'loader2/hdinstall.c')
-rw-r--r-- | loader2/hdinstall.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c index 52a14ae5a..71276c09e 100644 --- a/loader2/hdinstall.c +++ b/loader2/hdinstall.c @@ -116,11 +116,13 @@ static int loadHDImages(char * prefix, char * dir, if (!verifyStamp(mntpoint)) { char * buf; - buf = sdupprintf(_("The %s installation tree in that directory does " - "not seem to match your boot media."), - getProductName()); + fd = asprintf(&buf, + _("The %s installation tree in that directory does " + "not seem to match your boot media."), + getProductName()); newtWinMessage(_("Error"), _("OK"), buf); + free(buf); umountLoopback(mntpoint, device); return 1; } @@ -297,12 +299,12 @@ char * mountHardDrive(struct installMethod * method, } /* now find out which partition has the hard drive install images */ - buf = sdupprintf(_("What partition and directory on that " - "partition hold the CD (iso9660) images " - "for %s? If you don't see the disk drive " - "you're using listed here, press F2 " - "to configure additional devices."), - getProductName()); + rc = asprintf(&buf, _("What partition and directory on that " + "partition hold the CD (iso9660) images " + "for %s? If you don't see the disk drive " + "you're using listed here, press F2 " + "to configure additional devices."), + getProductName()); text = newtTextboxReflowed(-1, -1, buf, 62, 5, 5, 0); free(buf); |