Module: kamailio
Branch: master
Commit: 9c793833f4b56f02cf692533ad515d87d6341bf4
URL:
https://github.com/kamailio/kamailio/commit/9c793833f4b56f02cf692533ad515d8…
Author: Claudiu Boriga <paul.boriga(a)1and1.ro>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-01T10:36:01+02:00
carrierroute: avoid truncating value returned by fgetc
---
Modified: src/modules/carrierroute/cr_config.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9c793833f4b56f02cf692533ad515d8…
Patch:
https://github.com/kamailio/kamailio/commit/9c793833f4b56f02cf692533ad515d8…
---
diff --git a/src/modules/carrierroute/cr_config.c b/src/modules/carrierroute/cr_config.c
index 2d1af1ecfe..40523d9544 100644
--- a/src/modules/carrierroute/cr_config.c
+++ b/src/modules/carrierroute/cr_config.c
@@ -111,7 +111,8 @@ static int init_prefix_opts(){
static int backup_config(void) {
FILE * from, * to;
- char * backup_file, ch;
+ char * backup_file;
+ int ch;
LM_INFO("start configuration backup\n");
if((backup_file = pkg_malloc(strlen(config_file) + strlen (".bak") + 1)) ==
NULL){
PKG_MEM_ERROR;