summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/g_canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_canvas.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_canvas.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_canvas.c b/apps/plugins/pdbox/PDa/src/g_canvas.c
index 19c10474c1..fde19461d0 100644
--- a/apps/plugins/pdbox/PDa/src/g_canvas.c
+++ b/apps/plugins/pdbox/PDa/src/g_canvas.c
@@ -94,8 +94,8 @@ static void glist_doupdatewindowlist(t_glist *gl, char *sbuf)
{
char tbuf[1024];
#ifdef ROCKBOX
- snprintf(tbuf, sizeof(tbuf)-1,
- "{%s .x%x} ", gl->gl_name->s_name, (t_int)canvas);
+ snprintf(tbuf, sizeof(tbuf),
+ "{%s .x%x} ", gl->gl_name->s_name, (t_int) canvas);
#else /* ROCKBOX */
sprintf(tbuf, "{%s .x%x} ", gl->gl_name->s_name, (t_int)canvas);
#endif /* ROCKBOX */
@@ -483,7 +483,7 @@ t_glist *glist_addglist(t_glist *g, t_symbol *sym,
{
char buf[40];
#ifdef ROCKBOX
- snprintf(buf, sizeof(buf)-1, "graph%d", ++gcount);
+ snprintf(buf, sizeof(buf), "graph%d", ++gcount);
#else /* ROCKBOX */
sprintf(buf, "graph%d", ++gcount);
#endif /* ROCKBOX */
@@ -712,7 +712,7 @@ static t_editor *editor_new(t_glist *owner)
x->e_deleted = binbuf_new();
x->e_glist = owner;
#ifdef ROCKBOX
- snprintf(buf, sizeof(buf)-1, ".x%x", (t_int)owner);
+ snprintf(buf, sizeof(buf), ".x%x", (t_int)owner);
#else /* ROCKBOX */
sprintf(buf, ".x%x", (t_int)owner);
#endif /* ROCKBOX */
@@ -1237,7 +1237,7 @@ static void *table_new(t_symbol *s, t_floatarg f)
char tabname[255];
t_symbol *t = gensym("table");
#ifdef ROCKBOX
- snprintf(tabname, sizeof(tabname)-1, "%s%d", t->s_name, tabcount++);
+ snprintf(tabname, sizeof(tabname), "%s%d", t->s_name, tabcount++);
#else /* ROCKBOX */
sprintf(tabname, "%s%d", t->s_name, tabcount++);
#endif /* ROCKBOX */