[Asterisk-code-review] func_channel: Added new OTHER_CHANNEL function (asterisk[16])

N A asteriskteam at digium.com
Mon May 17 10:46:39 CDT 2021


N A has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/15908 )

Change subject: func_channel: Added new OTHER_CHANNEL function
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.asterisk.org/c/asterisk/+/15908/1/funcs/func_channel.c 
File funcs/func_channel.c:

https://gerrit.asterisk.org/c/asterisk/+/15908/1/funcs/func_channel.c@792 
PS1, Line 792: 	sprintf(template, "${%s}", data); /* SAFE */
> Use of snprintf is safer as far as compiler warnings.
Is this what you meant? I get a compiler warning with snprintf:
func_ochannel.c:77:25: warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
  snprintf(output, sizeof(output), "${%s}", data); /* SAFE */



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15908
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I7492645ae4307553d0f586d78e13a4f586231fdf
Gerrit-Change-Number: 15908
Gerrit-PatchSet: 2
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-CC: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Mon, 17 May 2021 15:46:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Richard Mudgett <rmudgett at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210517/6e37e4f4/attachment-0001.html>


More information about the asterisk-code-review mailing list