mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-19 04:57:38 -04: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
|
@ -150,7 +150,7 @@ t_garray *graph_array(t_glist *gl, t_symbol *s, t_symbol *templatesym,
|
|||
{
|
||||
char buf[40];
|
||||
#ifdef ROCKBOX
|
||||
snprintf(buf, sizeof(buf)-1, "array%d", ++gcount);
|
||||
snprintf(buf, sizeof(buf), "array%d", ++gcount);
|
||||
#else
|
||||
sprintf(buf, "array%d", ++gcount);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue