[sr-dev] git:5.1:26bd009c: mtree: use cast to unsigned char for accessing _mt_char_table array

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 4 09:32:56 CET 2017


Module: kamailio
Branch: 5.1
Commit: 26bd009c4963e4acb1e0eb52d0f5c9f17096d412
URL: https://github.com/kamailio/kamailio/commit/26bd009c4963e4acb1e0eb52d0f5c9f17096d412

Author: Timo Teras <timo.teras at iki.fi>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-04T09:26:12+01:00

mtree: use cast to unsigned char for accessing _mt_char_table array

- switched the index from unsigned int to unsigned char
- simplifies the code by avoiding the tests for exceeding the size of the
array
- error message extended to print the full string
- slightly modified version of PR #1343

(cherry picked from commit ae18e409d71d2d4eccb4604bb6f29a121309b54e)

---

Modified: src/modules/mtree/mtree.c

---

Diff:  https://github.com/kamailio/kamailio/commit/26bd009c4963e4acb1e0eb52d0f5c9f17096d412.diff
Patch: https://github.com/kamailio/kamailio/commit/26bd009c4963e4acb1e0eb52d0f5c9f17096d412.patch




More information about the sr-dev mailing list