summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
authorjoden <devnull@localhost>2004-03-27 11:34:14 +0000
committerjoden <devnull@localhost>2004-03-27 11:34:14 +0000
commita8b1e8604841890131b0c31554de89374de3a38e (patch)
treede28d34bad1bc469cd9c4bfc7b41166ad198254d /rpmio/macro.c
parent60057a2de1e72a8077afc926e40addc923695419 (diff)
downloadlibrpm-tizen-a8b1e8604841890131b0c31554de89374de3a38e.tar.gz
librpm-tizen-a8b1e8604841890131b0c31554de89374de3a38e.tar.bz2
librpm-tizen-a8b1e8604841890131b0c31554de89374de3a38e.zip
Made it so %* does not evaluate with a leading space. For instance:
%define xxx() "%{*}" %xxx 1 2 3 would evaluate to: " 1 2 3" and now evaluates to: "1 2 3" CVS patchset: 7196 CVS date: 2004/03/27 11:34:14
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 562870c0d..fd881c401 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -1010,7 +1010,7 @@ grabArgs(MacroBuf mb, const MacroEntry me, /*@returned@*/ const char * se,
for (c = optind; c < argc; c++) {
sprintf(aname, "%d", (c - optind + 1));
addMacro(mb->mc, aname, NULL, argv[c], mb->depth);
- *be++ = ' ';
+ if(be != b) *be++ = ' '; /* Add space between args */
/*@-nullpass@*/ /* FIX: argv[] can be NULL */
be = stpcpy(be, argv[c]);
/*@=nullpass@*/