diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 17:35:12 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 17:35:12 +0000 |
commit | 6073eedd56fcd46a144848315c3be1696e4b9ac9 (patch) | |
tree | cdc62ce7e71eb5e595915ebfc9a67e2d52712ba5 /pbx.c | |
parent | ba9e24dd4ae4f62dcee3618932543fe5c87172d7 (diff) |
Another patch against this code (the right one now) to deal with cyclic ranges. #6230
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8059 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3747,8 +3747,8 @@ static unsigned get_range(char *src, int max, char *const names[], const char *m e = s; } /* Fill the mask. Remember that ranges are cyclic */ - mask = 1 << s; /* last element in case s == e */ - for ( ; s<=e; s++) { + mask = 1 << e; /* initialize with last element */ + for ( ; s != e; s++) { if (s == max) s = 0 ; mask |= (1 << s); |