# HG changeset patch # User Mychaela Falconia # Date 1692080607 28800 # Node ID 5141e21596bb102c2cfb97506b4ba85a5d82b74d # Parent db366c3b35f739a10073e14cb82e1d257a4f4a71 themwi-test-mtc: fix ancient bug in From number setting diff -r db366c3b35f7 -r 5141e21596bb mtctest/setup.c --- a/mtctest/setup.c Mon Aug 14 19:14:08 2023 -0800 +++ b/mtctest/setup.c Mon Aug 14 22:23:27 2023 -0800 @@ -158,7 +158,7 @@ return; if (!strncmp(arg, "ton=", 4)) { arg += 4; - if (arg[0] >= '0' && arg[1] <= '7' && !isdigit(arg[1])){ + if (arg[0] >= '0' && arg[0] <= '7' && !isdigit(arg[1])){ setup_msg.calling.type = *arg - '0'; arg++; } else { @@ -168,7 +168,7 @@ } } else if (!strncmp(arg, "npi=", 4)) { arg += 4; - if (arg[0] >= '0' && arg[1] <= '9' && !isdigit(arg[1])){ + if (arg[0] >= '0' && arg[0] <= '9' && !isdigit(arg[1])){ setup_msg.calling.plan = *arg - '0'; arg++; } else if (arg[0] == '1' && arg[1] >= '0' &&