Module: kamailio Branch: master Commit: bd82882807ad89c7564709db414ddbe26bd70728 URL: https://github.com/kamailio/kamailio/commit/bd82882807ad89c7564709db414ddbe2...
Author: Jan Janak janakj@cs.columbia.edu Committer: Jan Janak janakj@cs.columbia.edu Date: 2019-04-20T12:18:52-04:00
More string buffer handling improvements in imc module
Let the compiler do the work of figuring out the size of the string buffer being written to using the sizeof operator. Hopefully, this will make the source code less error-prone and more Coverity friendly.
Properly handle all return values of snprintf. In particular, do not fail silently if the function returns -1.
---
Modified: src/modules/imc/imc_cmd.c
---
Diff: https://github.com/kamailio/kamailio/commit/bd82882807ad89c7564709db414ddbe2... Patch: https://github.com/kamailio/kamailio/commit/bd82882807ad89c7564709db414ddbe2...