Skip to content
Snippets Groups Projects
Commit 34ba77e7 authored by BJ Weschke's avatar BJ Weschke
Browse files

Range should be inclusive, not exclusive, of the end of the range.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent caa0de6e
Branches
Tags
No related merge requests found
......@@ -3748,7 +3748,7 @@ static unsigned get_range(char *src, int max, char *const names[], const char *m
}
/* Fill the mask. Remember that ranges are cyclic */
mask = 1 << s; /* last element in case s == e */
for ( ; s!=e; s++) {
for ( ; s<=e; s++) {
if (s == max)
s = 0 ;
mask |= (1 << s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment