summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/m_atom.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_atom.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/m_atom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_atom.c b/apps/plugins/pdbox/PDa/src/m_atom.c
index 4d30c1b3de..e49c6ae478 100644
--- a/apps/plugins/pdbox/PDa/src/m_atom.c
+++ b/apps/plugins/pdbox/PDa/src/m_atom.c
@@ -134,10 +134,10 @@ void atom_string(t_atom *a, char *buf, unsigned int bufsize)
}
break;
case A_DOLLAR:
- snprintf(buf, bufsize-1, "$%d", a->a_w.w_index);
+ snprintf(buf, bufsize, "$%d", a->a_w.w_index);
break;
case A_DOLLSYM:
- snprintf(buf, bufsize-1, "$%s", a->a_w.w_symbol->s_name);
+ snprintf(buf, bufsize, "$%s", a->a_w.w_symbol->s_name);
break;
default:
bug("atom_string");