aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-13 16:01:40 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-13 16:01:40 +0000
commite0da756966fefe60ffc272f8fba853b390a7d0df (patch)
tree6f9cb4f0bace33d3ed960ff073d8d36538581bbf /pbx.c
parent3496603957661f140c2dc12149107a2d6c033fd7 (diff)
Range should be inclusive, not exclusive, of the end of the range.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8056 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index a70f922fc..38c6e5d5d 100644
--- a/pbx.c
+++ b/pbx.c
@@ -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);