projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b16e0f
)
Avoid using ast_strdupa() in a loop.
author
Russell Bryant
<russell@russellbryant.com>
Thu, 12 Feb 2009 20:45:47 +0000
(20:45 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Thu, 12 Feb 2009 20:45:47 +0000
(20:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@175295
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
bfbdba3
..
b5dbdec
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-7670,7
+7670,8
@@
static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
/* XXX This needs to be done per media stream, since it's media stream specific */
iterator = req->sdp_start;
while ((a = get_sdp_iterate(&iterator, req, "a"))[0] != '\0') {
- char* mimeSubtype = ast_strdupa(a); /* ensures we have enough space */
+ char mimeSubtype[128];
+ ast_copy_string(mimeSubtype, a, sizeof(mimeSubtype));
if (option_debug > 1) {
int breakout = FALSE;