227 |
line_begin = lines; |
line_begin = lines; |
228 |
num_lines = 0; |
num_lines = 0; |
229 |
copied = 0; |
copied = 0; |
230 |
|
|
231 |
while ((pos = strchr(line_begin, '\n')) && copied < read) { |
while ((pos = strchr(line_begin, '\n')) && copied < read) { |
232 |
char *buf; |
char *buf; |
233 |
|
|
642 |
{ |
{ |
643 |
char section[256]; |
char section[256]; |
644 |
|
|
645 |
if (iname == NULL || *iname == '\0') |
if (iname == NULL || *iname == '\0') { |
646 |
state->config = gn_config_global; |
state->config = gn_config_global; |
647 |
else { |
} else { |
648 |
snprintf(section, sizeof(section), "phone_%s", iname); |
snprintf(section, sizeof(section), "phone_%s", iname); |
649 |
if (!cfg_psection_load(&state->config, section, &gn_config_global)) |
if (!cfg_psection_load(&state->config, section, &gn_config_global)) |
650 |
return false; |
return false; |