Module: kamailio
Branch: master
Commit: f8fa313fd372ffc94fad0c11dba76774c1e3002a
URL:
https://github.com/kamailio/kamailio/commit/f8fa313fd372ffc94fad0c11dba7677…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2017-07-04T12:33:11+02:00
Merge pull request #1180 from smititelu/master
dispatcher: Increase line buffer size
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f8fa313fd372ffc94fad0c11dba7677…
Patch:
https://github.com/kamailio/kamailio/commit/f8fa313fd372ffc94fad0c11dba7677…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 155be57ca5..bea737f4bc 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -623,7 +623,7 @@ int reindex_dests(ds_set_t *node)
/*! \brief load groups of destinations from file */
int ds_load_list(char *lfile)
{
- char line[256], *p;
+ char line[1024], *p;
FILE *f = NULL;
int id, setn, flags, priority;
str uri;
@@ -650,7 +650,7 @@ int ds_load_list(char *lfile)
*next_idx = (*crt_idx + 1) % 2;
ds_avl_destroy(&ds_lists[*next_idx]);
- p = fgets(line, 256, f);
+ p = fgets(line, 1024, f);
while(p) {
/* eat all white spaces */
while(*p && (*p == ' ' || *p == '\t' || *p == '\r' ||
*p == '\n'))
@@ -728,7 +728,7 @@ int ds_load_list(char *lfile)
LM_WARN("unable to add destination %.*s to set %d -- skipping\n",
uri.len, uri.s, id);
next_line:
- p = fgets(line, 256, f);
+ p = fgets(line, 1024, f);
}
if(reindex_dests(ds_lists[*next_idx]) != 0) {