1
0
Fork 0
forked from len0rd/rockbox

Fix buffer overflow when adding a radio preset.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13327 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2007-05-05 12:06:35 +00:00
parent 3fb7c5cb41
commit a967523b2b

View file

@ -1076,7 +1076,7 @@ void radio_load_presets(char *filename)
static int radio_add_preset(void)
{
char buf[MAX_FMPRESET_LEN];
char buf[MAX_FMPRESET_LEN + 1];
if(num_presets < MAX_PRESETS)
{