diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-11-02 01:22:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-11-02 01:22:37 +0000 |
commit | 48dd350c80677624c91e762d8e723f7b477c9d00 (patch) | |
tree | 7716be539f7d504929f57e88f521166219e712d0 /config.c | |
parent | e9162dfc7c0b151ad453db675e8d17be9dbd28f2 (diff) |
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-x | config.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -162,7 +162,7 @@ struct ast_config *ast_load(char *configfile) int lineno=0; if (configfile[0] == '/') { - strncpy(fn, configfile, sizeof(fn)); + strncpy(fn, configfile, sizeof(fn)-1); } else { snprintf(fn, sizeof(fn), "%s/%s", AST_CONFIG_DIR, configfile); } @@ -221,7 +221,7 @@ struct ast_config *ast_load(char *configfile) fclose(f); return NULL; } - strncpy(tmpc->name, cur+1, sizeof(tmpc->name)); + strncpy(tmpc->name, cur+1, sizeof(tmpc->name)-1); tmpc->root = NULL; tmpc->next = tmp->root; tmp->root = tmpc; @@ -261,7 +261,7 @@ struct ast_config *ast_load(char *configfile) return NULL; } } else { - ast_log(LOG_WARNING, "No '=' (equal sign) in line %d\n", lineno); + ast_log(LOG_WARNING, "No '=' (equal sign) in line %d of %s\n", lineno, configfile); } } |