mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Simplify a trivial snprintf() with ast_copy_string()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@105595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user