]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripting.c
added iceman1001 s latest reveng script version
[proxmark3-svn] / client / scripting.c
index cc6498ce5997a52a85adef7a645a6d067c7c3bde..88afef34049c8c71b8556fc43313ea5683e711f5 100644 (file)
@@ -397,8 +397,9 @@ 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);
+       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