projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fahrplan-Testdatei auf latin1
[hackover2013-badge-firmware.git]
/
badge
/
jumpnrun
/
starter.c
diff --git
a/badge/jumpnrun/starter.c
b/badge/jumpnrun/starter.c
index
0645487
..
d35c5fa
100644
(file)
--- a/
badge/jumpnrun/starter.c
+++ b/
badge/jumpnrun/starter.c
@@
-76,7
+76,8
@@
static uint8_t jumpnrun_pick_level_from_fd(char *buf, size_t *first_visible, siz
}
*selected = choice;
}
*selected = choice;
- strcpy(buf, fnames[*selected]);
+ strncpy(buf, fnames[*selected], LEVELFILE_MAX);
+ buf[LEVELFILE_MAX] = '\0';
return 0;
}
return 0;
}
This page took
0.020433 seconds
and
4
git commands to generate.