summaryrefslogtreecommitdiff
path: root/build/poptBT.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-01 16:28:47 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-10-01 16:28:47 +0300
commite358af91668bb24ae93dbab99cc3acbc429e8aa1 (patch)
treeb41d4013bf10b16baf70a8ba6abde7d294cfd204 /build/poptBT.c
parent65e06b20130da895fda8e3698a7ebe18e14d13ca (diff)
downloadrpm-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.c10
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: