[sr-dev] git:master:ae18e409: mtree: use cast to unsigned char for accessing _mt_char_table array

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 29 19:59:05 CET 2017


Module: kamailio
Branch: master
Commit: ae18e409d71d2d4eccb4604bb6f29a121309b54e
URL: https://github.com/kamailio/kamailio/commit/ae18e409d71d2d4eccb4604bb6f29a121309b54e

Author: Timo Teras <timo.teras at iki.fi>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-11-29T19:58:45+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

---

Modified: src/modules/mtree/mtree.c

---

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




More information about the sr-dev mailing list