]> 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:36:04 +0000 (18:36 +0000)
commit72fa12a8ca6a80d3545c441ba64965c5d3ff73a7
tree82d23fff11a95d931a018aecbfbe0689aead932c
parent8ca64f1d7fe64ee8b1d3e05a66ee750a52430008
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 e8cbf576bb937949a6bd3190cdf62f03d69b9208)
main/strings.c
tests/test_strings.c