X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/68ff832584696b96ce0939149c1435a5d8081dc5..99789601dcc6c6b347d857fb2d32c9d1ef52d43d:/client/scripting.c diff --git a/client/scripting.c b/client/scripting.c index fff3c0f6..75760663 100644 --- a/client/scripting.c +++ b/client/scripting.c @@ -397,11 +397,10 @@ static int l_reveng_models(lua_State *L){ if( in_width > 89 ) return returnToLuaWithError(L,"Width cannot exceed 89, got %d", in_width); - uint32_t width = (uint32_t)in_width; - int ans = GetModels(models, &count, &width); - if (!ans){ - return 0; - } + uint8_t width[80]; + width[0] = (uint8_t)in_width; + int ans = GetModels(models, &count, width); + if (!ans) return 0; lua_newtable(L);