summaryrefslogtreecommitdiff
path: root/apps/app_hasnewvoicemail.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_hasnewvoicemail.c')
-rwxr-xr-xapps/app_hasnewvoicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c
index 62585f1c4..733a65ec8 100755
--- a/apps/app_hasnewvoicemail.c
+++ b/apps/app_hasnewvoicemail.c
@@ -113,7 +113,7 @@ static int hasvoicemail_exec(struct ast_channel *chan, void *data)
/* Set the count in the channel variable */
if (varname) {
char tmp[12];
- snprintf(tmp, sizeof(tmp) - 1, "%d", vmcount);
+ snprintf(tmp, sizeof(tmp), "%d", vmcount);
pbx_builtin_setvar_helper(chan, varname, tmp);
}