diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-30 20:01:17 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | bf6e72655349812ee1322bb019a056846d6637ca (patch) | |
| tree | bd9daf1ce846db6804b50a9475aa4114dc0702e1 /lib/frrlua.c | |
| parent | e4e0229aba2b90d93bf681cc4e309c93f7cff61f (diff) | |
lib: use PREFIX_STRLEN in prefix encoder
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrlua.c')
| -rw-r--r-- | lib/frrlua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c index cd878eb711..f8670a4b41 100644 --- a/lib/frrlua.c +++ b/lib/frrlua.c @@ -60,12 +60,12 @@ int frrlua_table_get_integer(lua_State *L, const char *key) void lua_pushprefix(lua_State *L, const struct prefix *prefix) { - char buffer[100]; + char buffer[PREFIX_STRLEN]; zlog_debug("frrlua: pushing prefix table"); lua_newtable(L); - lua_pushstring(L, prefix2str(prefix, buffer, 100)); + lua_pushstring(L, prefix2str(prefix, buffer, PREFIX_STRLEN)); lua_setfield(L, -2, "network"); lua_pushinteger(L, prefix->prefixlen); lua_setfield(L, -2, "length"); |
