projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #1 from bforbort/master
[proxmark3-svn]
/
client
/
scripting.c
diff --git
a/client/scripting.c
b/client/scripting.c
index f0c56baf0951537a75683234db7a132e2e31d109..cc59f995bfc36255ab403e0fe502f2011f902399 100644
(file)
--- a/
client/scripting.c
+++ b/
client/scripting.c
@@
-268,8
+268,8
@@
static int l_crc16(lua_State *L)
{
size_t size;
const char *p_str = luaL_checklstring(L, 1, &size);
-
- u
nsigned short retval = crc16_ccitt(
p_str, size);
+
+ u
int16_t retval = crc16_ccitt( (uint8_t*)
p_str, size);
lua_pushinteger(L, (int) retval);
return 1;
}
Impressum
,
Datenschutz