forked from len0rd/rockbox
PDBox: Use correct values of maximal string size for snprintf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22154 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
28fbb49c0b
commit
7996e77334
10 changed files with 25 additions and 28 deletions
|
@ -134,10 +134,10 @@ void atom_string(t_atom *a, char *buf, unsigned int bufsize)
|
|||
}
|
||||
break;
|
||||
case A_DOLLAR:
|
||||
snprintf(buf, bufsize-1, "$%d", a->a_w.w_index);
|
||||
snprintf(buf, bufsize, "$%d", a->a_w.w_index);
|
||||
break;
|
||||
case A_DOLLSYM:
|
||||
snprintf(buf, bufsize-1, "$%s", a->a_w.w_symbol->s_name);
|
||||
snprintf(buf, bufsize, "$%s", a->a_w.w_symbol->s_name);
|
||||
break;
|
||||
default:
|
||||
bug("atom_string");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue