mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
Merged revisions 130129 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r130129 | bbryant | 2008-07-11 13:09:35 -0500 (Fri, 11 Jul 2008) | 8 lines Janitor patch to change uses of sizeof to ARRAY_LEN (closes issue #13054) Reported by: pabelanger Patches: ARRAY_LEN.patch2 uploaded by pabelanger (license 224) Tested by: seanbright ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@130130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -215,7 +215,7 @@ static void dump_cause(char *output, int maxlen, void *value, int len)
|
||||
memcpy(tmp2, cause->desc, datalen);
|
||||
tmp2[datalen] = '\0';
|
||||
|
||||
if (causecode < sizeof(causes) / sizeof(causes[0])) {
|
||||
if (causecode < ARRAY_LEN(causes)) {
|
||||
if (ast_strlen_zero(tmp2))
|
||||
snprintf(output, maxlen, "%s", causes[causecode]);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user