summaryrefslogtreecommitdiffstats
path: root/apps/plugins/announce_status.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/announce_status.c')
-rw-r--r--apps/plugins/announce_status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/announce_status.c b/apps/plugins/announce_status.c
index a1e9f430a8..92f9aa28ec 100644
--- a/apps/plugins/announce_status.c
+++ b/apps/plugins/announce_status.c
@@ -438,7 +438,7 @@ void plugin_buffer_init(void)
{
rb->memset(&gThread, 0, sizeof(gThread));
gThread.buf = rb->plugin_get_buffer(&gThread.buf_size);
- ALIGN_BUFFER(gThread.buf, gThread.buf_size, 4);
+ ALIGN_BUFFER(gThread.buf, gThread.buf_size, sizeof(long));
}
}
@@ -448,9 +448,9 @@ void thread_create(void)
gThread.stacksize = gThread.buf_size;
gThread.buf_size -= gThread.stacksize;
- gThread.stack = (long *) gThread.buf + gThread.buf_size;
+ gThread.stack = (long *) gThread.buf;
- ALIGN_BUFFER(gThread.stack, gThread.stacksize, 4);
+ ALIGN_BUFFER(gThread.stack, gThread.stacksize, sizeof(long));
if (gThread.stacksize < DEFAULT_STACK_SIZE)
{