mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
More strcpy / snprintf as part of rgagnon's audit (bug #2004)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -242,8 +242,8 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int
|
||||
break;
|
||||
}
|
||||
|
||||
strcpy(cid->number, "");
|
||||
strcpy(cid->name, "");
|
||||
cid->number[0] = '\0';
|
||||
cid->name[0] = '\0';
|
||||
/* If we get this far we're fine. */
|
||||
if (cid->type == 0x80) {
|
||||
/* MDMF */
|
||||
|
Reference in New Issue
Block a user