diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-14 07:22:30 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-14 07:22:30 +0000 |
commit | 59d780973e0c1aab681be9dcba1baa2706caf92f (patch) | |
tree | 069cf4d5aa497e953fd1467abefc88134b3fc727 /apps/app_cut.c | |
parent | 8e06b188edfed3926b0e640a2294525b3488ccdf (diff) |
Merge rgagnon's pedantic string checks (apps a-m, bug #2035)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3428 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_cut.c')
-rwxr-xr-x | apps/app_cut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_cut.c b/apps/app_cut.c index aa180f1a5..da397f66e 100755 --- a/apps/app_cut.c +++ b/apps/app_cut.c @@ -101,7 +101,7 @@ static int cut_exec(struct ast_channel *chan, void *data) d = '-'; /* String form of the delimiter, for use with strsep(3) */ - sprintf(ds,"%c",d); + snprintf(ds, sizeof(ds), "%c", d); pbx_substitute_variables_helper(chan, tmp, tmp2, MAXRESULT - 1); |