diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-03-04 04:57:29 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-03-04 04:57:29 +0000 |
commit | 3b483f80d6dab265b2ec424486e66c5b0f8c3e33 (patch) | |
tree | 48cc77ccd0e5cab00dc31d766b96e318a93d5470 /funcs | |
parent | 7205c1f23cc11952eaad4ebefecf459c08834b3c (diff) |
Simplify a trivial snprintf() with ast_copy_string()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@105595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_version.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_version.c b/funcs/func_version.c index 27e86b77b..973f866c6 100644 --- a/funcs/func_version.c +++ b/funcs/func_version.c @@ -63,7 +63,7 @@ static int acf_version_exec(struct ast_channel *chan, const char *cmd, ast_debug(1, "VERSION returns %s result, given %s argument\n", response_char, args.info); - snprintf(buffer, buflen, "%s", response_char); + ast_copy_string(buffer, response_char, buflen); return 0; } |