Author: bonefish Date: 2010-04-06 20:44:58 +0200 (Tue, 06 Apr 2010) New Revision: 36051 Changeset: http://dev.haiku-os.org/changeset/36051/haiku Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/speculative/5-1.c Log: Fixed out of bounds array access. Modified: haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/speculative/5-1.c =================================================================== --- haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/speculative/5-1.c 2010-04-06 18:44:18 UTC (rev 36050) +++ haiku/trunk/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_key_create/speculative/5-1.c 2010-04-06 18:44:58 UTC (rev 36051) @@ -36,7 +36,7 @@ int NUM_OF_KEYS = PTHREAD_KEYS_MAX; -static pthread_key_t keys[5]; +static pthread_key_t keys[NUM_OF_KEYS]; int main() {