for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':
for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
- snprintf(nextmsg,sizeof(nextmsg), AST_SOUNDS "/%s", sndfile);
- res = wait_file(chan,ints,nextmsg,lang);
+ res = wait_file(chan,ints,sndfile,lang);
break;
case 'A':
case 'a':