]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripting.c
ADD: @marshmellow42 's help text changes to the reveng
[proxmark3-svn] / client / scripting.c
index fff3c0f65ffd92ba37d86bcda98b298b621296b9..7576066313a575021f12a6b75b6e48438b56e70b 100644 (file)
@@ -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);
        
Impressum, Datenschutz