projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: clearing a char array.
[proxmark3-svn]
/
client
/
scripting.c
diff --git
a/client/scripting.c
b/client/scripting.c
index 63d7f44e6f53e45148e355b9649bfef74902db88..5d9ce55a716b3c8380d26c27b1a51d95e0bf682c 100644
(file)
--- a/
client/scripting.c
+++ b/
client/scripting.c
@@
-53,7
+53,7
@@
static int l_SendCommand(lua_State *L){
const char *data = luaL_checklstring(L, 1, &size);
if(size != sizeof(UsbCommand))
{
const char *data = luaL_checklstring(L, 1, &size);
if(size != sizeof(UsbCommand))
{
-
printf("Got data size %d, expected %d" , size,
sizeof(UsbCommand));
+
printf("Got data size %d, expected %d" , (int) size,(int)
sizeof(UsbCommand));
lua_pushstring(L,"Wrong data size");
return 1;
}
lua_pushstring(L,"Wrong data size");
return 1;
}
Impressum
,
Datenschutz