mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 23:36:31 +08:00
style
This commit is contained in:
parent
48eeceae58
commit
bd1244287f
|
@ -222,7 +222,7 @@ int hashtable_set(hashtable_t *hashtable, const char *key, json_t *value) {
|
|||
allocated. */
|
||||
|
||||
size_t len = strlen(key);
|
||||
if (len >= (size_t) -1 - offsetof(pair_t, key)) {
|
||||
if (len >= (size_t) - 1 - offsetof(pair_t, key)) {
|
||||
/* Avoid an overflow if the key is very long */
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue