mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Merged revisions 160207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r160207 | tilghman | 2008-12-01 18:25:16 -0600 (Mon, 01 Dec 2008) | 3 lines Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc and glibc. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -478,9 +478,12 @@ struct ast_frame *ast_frdup(const struct ast_frame *f)
|
||||
memcpy(out->data.ptr, f->data.ptr, out->datalen);
|
||||
}
|
||||
if (srclen > 0) {
|
||||
/* This may seem a little strange, but it's to avoid a gcc (4.2.4) compiler warning */
|
||||
char *src;
|
||||
out->src = buf + sizeof(*out) + AST_FRIENDLY_OFFSET + f->datalen;
|
||||
src = (char *) out->src;
|
||||
/* Must have space since we allocated for it */
|
||||
strcpy((char *)out->src, f->src);
|
||||
strcpy(src, f->src);
|
||||
}
|
||||
ast_copy_flags(out, f, AST_FRFLAG_HAS_TIMING_INFO);
|
||||
out->ts = f->ts;
|
||||
|
Reference in New Issue
Block a user