diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-04-17 09:20:20 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-04-17 09:20:20 +0200 |
commit | 9a6be3e53feb1a32e446419c6fef910eeca74f01 (patch) | |
tree | 6c306f06c0db009795134ff30a220619291824d9 | |
parent | bf3a8e6cd9253d2321a5d8c3665fa591eca3aae8 (diff) | |
download | rpm-9a6be3e53feb1a32e446419c6fef910eeca74f01.tar.gz rpm-9a6be3e53feb1a32e446419c6fef910eeca74f01.tar.bz2 rpm-9a6be3e53feb1a32e446419c6fef910eeca74f01.zip |
Use sizeof() instead of direct element count in rpmluaGetVar()
-rw-r--r-- | rpmio/rpmlua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 5a94bf315..096a411a0 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -220,7 +220,7 @@ static int findkey(lua_State *L, int oper, const char *key, va_list va) char buf[BUFSIZ]; const char *s, *e; int ret = 0; - (void) vsnprintf(buf, BUFSIZ, key, va); + (void) vsnprintf(buf, sizeof(buf), key, va); s = e = buf; lua_pushvalue(L, LUA_GLOBALSINDEX); for (;;) { |