diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-14 15:13:22 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-14 15:13:22 +0000 |
commit | 0f6892419e528b87e5f78304ca4e4ffa75ac58e5 (patch) | |
tree | 4d13b85101ee91390cedfbdfd9efba5a436b7aea /channels/chan_zap.c | |
parent | b4839d4d4ae5072ff910a253abcbe474018b67d7 (diff) |
One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 6c9723e65..2ea37472c 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -12246,7 +12246,7 @@ static int build_channels(struct zt_chan_conf conf, int iscrv, const char *value static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int reload, int skipchannels) { struct zt_pvt *tmp; - char *ringc; /* temporary string for parsing the dring number. */ + const char *ringc; /* temporary string for parsing the dring number. */ int y; int found_pseudo = 0; char zapchan[MAX_CHANLIST_LEN] = {}; @@ -12785,9 +12785,9 @@ static int process_zap(struct zt_chan_conf *confp, struct ast_variable *v, int r } } else if (!strcasecmp(v->name, "pritimer")) { #ifdef PRI_GETSET_TIMERS - char *timerc, *c; + char tmp[20], *timerc, *c = tmp; int timer, timeridx; - c = v->value; + ast_copy_string(tmp, v->value, sizeof(tmp)); timerc = strsep(&c, ","); if (timerc) { timer = atoi(c); |