diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-01 16:28:47 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-01 16:28:47 +0300 |
commit | e358af91668bb24ae93dbab99cc3acbc429e8aa1 (patch) | |
tree | b41d4013bf10b16baf70a8ba6abde7d294cfd204 /build/poptBT.c | |
parent | 65e06b20130da895fda8e3698a7ebe18e14d13ca (diff) | |
download | rpm-e358af91668bb24ae93dbab99cc3acbc429e8aa1.tar.gz rpm-e358af91668bb24ae93dbab99cc3acbc429e8aa1.tar.bz2 rpm-e358af91668bb24ae93dbab99cc3acbc429e8aa1.zip |
We have easier ways to catenate strings...
Diffstat (limited to 'build/poptBT.c')
-rw-r--r-- | build/poptBT.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/build/poptBT.c b/build/poptBT.c index 2c534063f..4d24c4c9a 100644 --- a/build/poptBT.c +++ b/build/poptBT.c @@ -100,15 +100,7 @@ static void buildArgCallback( poptContext con, rba->buildRootOverride = xstrdup(arg); break; case POPT_TARGETPLATFORM: - if (rba->targets) { - size_t len = strlen(rba->targets) + 1 + strlen(arg) + 1; - rba->targets = xrealloc(rba->targets, len); - strcat(rba->targets, ","); - } else { - rba->targets = xmalloc(strlen(arg) + 1); - rba->targets[0] = '\0'; - } - strcat(rba->targets, arg); + rstrscat(&rba->targets, rba->targets ? "," : "", arg, NULL); break; case RPMCLI_POPT_NODIGEST: |