summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/macro.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 4610555fb..1498f689b 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -1061,6 +1061,8 @@ doFoo(MacroBuf mb, int negate, const char * f, size_t fn,
if (STREQ("basename", f, fn)) {
if ((b = strrchr(buf, '/')) == NULL)
b = buf;
+ else
+ b++;
#if NOTYET
/* XXX watchout for conflict with %dir */
} else if (STREQ("dirname", f, fn)) {