Fahrplan-Browser.
[hackover2013-badge-firmware.git] / badge / jumpnrun / starter.c
index 0645487..d35c5fa 100644 (file)
@@ -76,7 +76,8 @@ static uint8_t jumpnrun_pick_level_from_fd(char *buf, size_t *first_visible, siz
   }
 
   *selected = choice;
-  strcpy(buf, fnames[*selected]);
+  strncpy(buf, fnames[*selected], LEVELFILE_MAX);
+  buf[LEVELFILE_MAX] = '\0';
   return 0;
 }
 
This page took 0.028671 seconds and 4 git commands to generate.