summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-06-20 18:56:15 +0000
committerBill Nottingham <notting@redhat.com>2005-06-20 18:56:15 +0000
commitce7cf52e4365231dd6265fc1f4e33be53df01bd7 (patch)
tree1ce4713ffeedb89a0a289f399fd2baa1695e6876 /utils
parent60c1f24e1145253b3bc11d07cd8d0684753a8ceb (diff)
downloadanaconda-ce7cf52e4365231dd6265fc1f4e33be53df01bd7.tar.gz
anaconda-ce7cf52e4365231dd6265fc1f4e33be53df01bd7.tar.xz
anaconda-ce7cf52e4365231dd6265fc1f4e33be53df01bd7.zip
undefined behavior is fun to rely on.
Diffstat (limited to 'utils')
-rw-r--r--utils/genhdlist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/genhdlist.c b/utils/genhdlist.c
index 3055d7c7e..4c8a7a3e8 100644
--- a/utils/genhdlist.c
+++ b/utils/genhdlist.c
@@ -544,8 +544,7 @@ int main(int argc, const char ** argv) {
requireTable = htNewTable(1000);
if (!hdListFile) {
- strcpy(buf, args[0]);
- sprintf(buf, "%s/%s/base/hdlist", buf, prodDir);
+ sprintf(buf, "%s/%s/base/hdlist", args[0], prodDir);
hdListFile = buf;
}