Index: apps/app_record.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v retrieving revision 1.19 diff -u -p -r1.19 app_record.c --- apps/app_record.c 30 Jun 2004 16:04:28 -0000 1.19 +++ apps/app_record.c 13 Jul 2004 22:19:29 -0000 @@ -156,7 +156,7 @@ static int record_exec(struct ast_channe create a new file with the inputed name scheme */ if (percentflag) { do { - snprintf(tmp, sizeof(tmp)-1, fil, count); + snprintf(tmp, sizeof(tmp), fil, count); count++; } while ( ast_fileexists(tmp, ext, chan->language) != -1 ); pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);