summaryrefslogtreecommitdiff
path: root/apps/plugins/alpine_cdc.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-05-07 19:27:42 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-05-07 19:27:42 +0000
commit8d4ff638b9a79abcefe538eef8f1933c0c0decf9 (patch)
treec1071be69e9f794318e6b833e0cb00d0124e77c6 /apps/plugins/alpine_cdc.c
parent6027b9160339bcc9efc80d76b095057e2524be8b (diff)
downloadrockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.zip
rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.gz
rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.bz2
rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.xz
Fix size_t handling in plugin_get_buffer()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/alpine_cdc.c')
-rw-r--r--apps/plugins/alpine_cdc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c
index 73bc49f..9357b2e 100644
--- a/apps/plugins/alpine_cdc.c
+++ b/apps/plugins/alpine_cdc.c
@@ -1141,6 +1141,7 @@ int main(const void* parameter)
#ifdef DEBUG
int button;
#endif
+ size_t buf_size;
ssize_t stacksize;
void* stack;
@@ -1155,7 +1156,8 @@ int main(const void* parameter)
#endif
/* init the worker thread */
- stack = rb->plugin_get_buffer((size_t *)&stacksize); /* use the rest as stack */
+ stack = rb->plugin_get_buffer(&buf_size); /* use the rest as stack */
+ stacksize = buf_size;
stack = (void*)(((unsigned int)stack + 100) & ~3); /* a bit away, 32 bit align */
stacksize = (stacksize - 100) & ~3;
if (stacksize < DEFAULT_STACK_SIZE)