mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 22:22:33 -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
|
|
@ -203,8 +203,8 @@ t_symbol *iemgui_new_dogetname(t_iemgui *iemgui, int indx, t_atom *argv)
|
|||
{
|
||||
char str[80];
|
||||
#ifdef ROCKBOX
|
||||
snprintf(str, sizeof(str)-1,
|
||||
"%d", (int)atom_getintarg(indx, 100000, argv));
|
||||
snprintf(str, sizeof(str), "%d",
|
||||
(int) atom_getintarg(indx, 100000, argv));
|
||||
#else
|
||||
sprintf(str, "%d", (int)atom_getintarg(indx, 100000, argv));
|
||||
#endif
|
||||
|
|
@ -623,8 +623,7 @@ int iemgui_dialog(t_iemgui *iemgui, t_symbol **srl, int argc, t_atom *argv)
|
|||
else if(IS_A_FLOAT(argv,7))
|
||||
{
|
||||
#ifdef ROCKBOX
|
||||
snprintf(str, sizeof(str)-1,
|
||||
"%d", (int)atom_getintarg(7, argc, argv));
|
||||
snprintf(str, sizeof(str), "%d", (int) atom_getintarg(7, argc, argv));
|
||||
#else
|
||||
sprintf(str, "%d", (int)atom_getintarg(7, argc, argv));
|
||||
#endif
|
||||
|
|
@ -635,8 +634,7 @@ int iemgui_dialog(t_iemgui *iemgui, t_symbol **srl, int argc, t_atom *argv)
|
|||
else if(IS_A_FLOAT(argv,8))
|
||||
{
|
||||
#ifdef ROCKBOX
|
||||
snprintf(str, sizeof(str)-1,
|
||||
"%d", (int)atom_getintarg(8, argc, argv));
|
||||
snprintf(str, sizeof(str), "%d", (int) atom_getintarg(8, argc, argv));
|
||||
#else
|
||||
sprintf(str, "%d", (int)atom_getintarg(8, argc, argv));
|
||||
#endif
|
||||
|
|
@ -647,8 +645,7 @@ int iemgui_dialog(t_iemgui *iemgui, t_symbol **srl, int argc, t_atom *argv)
|
|||
else if(IS_A_FLOAT(argv,9))
|
||||
{
|
||||
#ifdef ROCKBOX
|
||||
snprintf(str, sizeof(str)-1,
|
||||
"%d", (int)atom_getintarg(9, argc, argv));
|
||||
snprintf(str, sizeof(str), "%d", (int) atom_getintarg(9, argc, argv));
|
||||
#else
|
||||
sprintf(str, "%d", (int)atom_getintarg(9, argc, argv));
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue