summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/g_array.c
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2009-08-04 13:52:43 +0000
committerWincent Balin <wincent@rockbox.org>2009-08-04 13:52:43 +0000
commit7996e773340698a6d8c7bcdc465b8a9245f65601 (patch)
tree71d9f0d790cda97f7d9f9e23877007c72c96c4ed /apps/plugins/pdbox/PDa/src/g_array.c
parent28fbb49c0bfe44142eb36b3891d4d28021a1b277 (diff)
downloadrockbox-7996e773340698a6d8c7bcdc465b8a9245f65601.tar.gz
rockbox-7996e773340698a6d8c7bcdc465b8a9245f65601.tar.bz2
rockbox-7996e773340698a6d8c7bcdc465b8a9245f65601.zip
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
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_array.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_array.c b/apps/plugins/pdbox/PDa/src/g_array.c
index b6870b6117..c98e640e94 100644
--- a/apps/plugins/pdbox/PDa/src/g_array.c
+++ b/apps/plugins/pdbox/PDa/src/g_array.c
@@ -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