]> git.ipfire.org Git - thirdparty/asterisk.git/commit
strings.c: Improve numeric detection in `ast_strings_match()`.
authorSean Bright <sean@seanbright.com>
Wed, 15 Jan 2025 16:42:29 +0000 (11:42 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:42:28 +0000 (18:42 +0000)
commit8b736f2047525d8f838e9b47286bfe47240b75ba
tree2419e6c04383fe75151b684341c26d2400de1068
parent2b428734fd51c4b253a45e9388495f176ec6fbc7
strings.c: Improve numeric detection in `ast_strings_match()`.

Essentially, we were treating 1234x1234 and 1234x5678 as 'equal'
because we were able to convert the prefix of each of these strings to
the same number.

Resolves: #1028
(cherry picked from commit dafac1f6f4e163901bb888e791417d11e2406dad)
main/strings.c
tests/test_strings.c