summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/theme.c b/riscos/theme.c
index 20195196c..505f66edf 100644
--- a/riscos/theme.c
+++ b/riscos/theme.c
@@ -50,7 +50,7 @@ void ro_theme_load(char *pathname) {
os_mode mode;
os_coord dimensions;
int size, i, n;
- char filename[strlen(pathname) + 16];
+ char *filename = alloca(strlen(pathname) + 16);
fileswitch_object_type obj_type;
/* Release previous sprite are