Azure IoT common library
Fork of azure_c_shared_utility by
Diff: vector.c
- Revision:
- 11:77df6d7e65ae
- Parent:
- 10:1be0bc9a9deb
- Child:
- 19:2e0811512ceb
--- a/vector.c Fri Aug 26 12:59:40 2016 -0700 +++ b/vector.c Fri Sep 09 13:38:26 2016 -0700 @@ -125,7 +125,7 @@ if (handle != NULL) { const VECTOR* vec = (const VECTOR*)handle; - if (index <= vec->count) + if (index < vec->count) { result = (unsigned char*)vec->storage + (vec->elementSize * index); }