Skip to content

Commit

Permalink
cfgutils: fix parsing error printing
Browse files Browse the repository at this point in the history
Close #1777
  • Loading branch information
razvancrainea committed Jan 14, 2020
1 parent f2120f4 commit 2bc0946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cfgutils/cfgutils.c
Expand Up @@ -966,8 +966,8 @@ int check_time_rec(struct sip_msg *msg, char *time_str)
return 1;

parse_error:
LM_ERR("parse error in <%s> around position %i\n",
time_str, (int)(long)(p-time_str));
LM_ERR("parse error in <%.*s> around position %i\n",
ret.len, ret.s, (int)(long)(p-ret.s));
error:
if (time_rec)
tmrec_free( time_rec );
Expand Down

0 comments on commit 2bc0946

Please sign in to comment.