Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
11:77df6d7e65ae
Parent:
10:1be0bc9a9deb
Child:
19:2e0811512ceb
diff -r 1be0bc9a9deb -r 77df6d7e65ae vector.c
--- 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);
         }