diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-10-01 15:23:19 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-10-01 15:23:19 +0000 |
commit | d78463be1eb252fa160c1a6631ff7f43ce5677bb (patch) | |
tree | 5c5be0ea22d3b81ee644e5f620052a4f25f14e02 /apps/app_minivm.c | |
parent | 9217a05b01e31e22e57376abeb8707d9ca2d2839 (diff) |
Corydon posted this janitor project to the bug tracker and mvanbaak provided
a patch for it. It replaces a bunch of simple calls to snprintf with ast_copy_string
(closes issue #10843)
Reported by: Corydon76
Patches:
2007092900_10843.diff uploaded by mvanbaak (license 7)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_minivm.c')
-rw-r--r-- | apps/app_minivm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_minivm.c b/apps/app_minivm.c index e63de2668..2dff27031 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -934,7 +934,7 @@ static int sendmail(struct minivm_template *template, struct minivm_account *vmu char tmpcmd[PATH_MAX]; int tmpfd; - snprintf(newtmp, sizeof(newtmp), "/tmp/XXXXXX"); + ast_copy_string(newtmp, "/tmp/XXXXXX", sizeof(newtmp)); ast_debug(3, "newtmp: %s\n", newtmp); tmpfd = mkstemp(newtmp); snprintf(tmpcmd, sizeof(tmpcmd), "sox -v %.4f %s.%s %s.%s", vmu->volgain, filename, format, newtmp, format); |