summaryrefslogtreecommitdiff
path: root/riscos/about.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/about.c')
-rw-r--r--riscos/about.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/riscos/about.c b/riscos/about.c
index 1560c6306..db28a1c32 100644
--- a/riscos/about.c
+++ b/riscos/about.c
@@ -177,12 +177,14 @@ void about_create(void) {
continue;
}
else {
+ void *name;
+
/* Type 3: image file with name xxwwwwhhhh */
/* get actual file name */
sprintf(var, "%2.2d*", j);
LOG(("var: %s", var));
- void *name = (void*)xcalloc((unsigned int)20, sizeof(char));
+ name = (void*)xcalloc((unsigned int)20, sizeof(char));
e = xosgbpb_dir_entries(val, (osgbpb_string_list*)name,
1, 0, 255, var, NULL, NULL);