summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 1493689ef..03cf51b31 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -1022,7 +1022,7 @@ doOutput(MacroBuf mb, int waserror, const char * msg, size_t msglen)
*/
static void
doFoo(MacroBuf mb, int negate, const char * f, size_t fn,
- const char * g, size_t glen)
+ const char * g, size_t gn)
/*@globals rpmGlobalMacroContext,
fileSystem, internalState @*/
/*@modifies mb, rpmGlobalMacroContext,
@@ -1033,8 +1033,8 @@ doFoo(MacroBuf mb, int negate, const char * f, size_t fn,
buf[0] = '\0';
if (g) {
- strncpy(buf, g, glen);
- buf[glen] = '\0';
+ strncpy(buf, g, gn);
+ buf[gn] = '\0';
(void) expandU(mb, buf, sizeof(buf));
}
if (STREQ("basename", f, fn)) {