summaryrefslogtreecommitdiff
path: root/apps/plugins/snake2.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/snake2.c')
-rw-r--r--apps/plugins/snake2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index d9b6542bf3..414d924c4a 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -409,13 +409,13 @@ int load_all_levels(void)
409{ 409{
410 int linecnt = 0; 410 int linecnt = 0;
411 int fd; 411 int fd;
412 ssize_t size; 412 size_t size;
413 char buf[64]; /* Larger than WIDTH, to allow for whitespace after the 413 char buf[64]; /* Larger than WIDTH, to allow for whitespace after the
414 lines */ 414 lines */
415 415
416 /* Init the level_cache pointer and 416 /* Init the level_cache pointer and
417 calculate how many levels that will fit */ 417 calculate how many levels that will fit */
418 level_cache = rb->plugin_get_buffer((size_t *)&size); 418 level_cache = rb->plugin_get_buffer(&size);
419 max_levels = size / (HEIGHT*WIDTH); 419 max_levels = size / (HEIGHT*WIDTH);
420 420
421 num_levels = 0; 421 num_levels = 0;