mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 15:42:28 -05:00
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
|
|
@ -90,7 +90,7 @@ static void ipod_bang(t_ipod *x)
|
|||
{
|
||||
static char sendme[200];
|
||||
#ifdef ROCKBOX
|
||||
snprintf(sendme, sizeof(sendme)-1, "%s bang;\n", x->x_what->s_name);
|
||||
snprintf(sendme, sizeof(sendme), "%s bang;\n", x->x_what->s_name);
|
||||
SEND_FROM_CORE(sendme);
|
||||
#else /* ROCKBOX */
|
||||
sprintf(sendme,"%s bang;\n",x->x_what->s_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue