laforge submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
ccid dev: fix sizeof abuse
Change-Id: Ia96247af6f2a887d3c894a65983e795b9e5a7cbe
---
M ccid_common/ccid_device.c
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ccid_common/ccid_device.c b/ccid_common/ccid_device.c
index 405fb2e..398a2b4 100644
--- a/ccid_common/ccid_device.c
+++ b/ccid_common/ccid_device.c
@@ -137,7 +137,7 @@
static struct ccid_slot *get_ccid_slot(struct ccid_instance *ci, uint8_t slot_nr)
{
- if (slot_nr >= sizeof(ci->slot))
+ if (slot_nr >= ARRAY_SIZE(ci->slot))
return NULL;
else
return &ci->slot[slot_nr];
To view, visit change 39444. To unsubscribe, or for help writing mail filters, visit settings.