diff --git a/core/thread.c b/core/thread.c index 4f2088cfb6..618c3d1f86 100644 --- a/core/thread.c +++ b/core/thread.c @@ -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