summaryrefslogtreecommitdiff
path: root/res/res_fax.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_fax.c')
-rw-r--r--res/res_fax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_fax.c b/res/res_fax.c
index e703e16cf..247251c8b 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -809,7 +809,7 @@ static int update_modem_bits(enum ast_fax_modems *bits, const char *value)
m[i] = NULL;
} else {
tok = strtok(v, ", ");
- while (tok && (i < 5)) {
+ while (tok && i < ARRAY_LEN(m) - 1) {
m[i++] = tok;
tok = strtok(NULL, ", ");
}