aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdr.c')
-rwxr-xr-xcdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr.c b/cdr.c
index 76dc4de0e..a078c15eb 100755
--- a/cdr.c
+++ b/cdr.c
@@ -431,7 +431,7 @@ int ast_cdr_update(struct ast_channel *c)
if (c->callerid && !ast_strlen_zero(c->callerid))
strncpy(cdr->clid, c->callerid, sizeof(cdr->clid) - 1);
else
- strcpy(cdr->clid, "");
+ cdr->clid[0] = '\0';
name = NULL;
num = NULL;
ast_callerid_parse(tmp, &name, &num);