1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #3199 from ximus/fix-thread-stack-overflow-test

core: fix write of thread stack end test marker
This commit is contained in:
Kaspar Schleiser 2015-06-13 12:33:15 +02:00
commit b98d93a39e

View File

@ -161,7 +161,7 @@ kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags,
}
else {
/* create stack guard */
*stack = (uintptr_t) stack;
*(uintptr_t *) stack = (uintptr_t) stack;
}
#endif