aboutsummaryrefslogtreecommitdiffstats
path: root/privacy.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 22:56:21 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 22:56:21 +0000
commit9690f518f5b644b670f4e8e047083535c106dafa (patch)
tree922450cc41923990ec190243f4948def77780abf /privacy.c
parentcd6f09bb95479166e8a62538b941e9e5daa3394e (diff)
more ast_copy_string conversions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6073 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'privacy.c')
-rwxr-xr-xprivacy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/privacy.c b/privacy.c
index c02f093e0..2cef6cae2 100755
--- a/privacy.c
+++ b/privacy.c
@@ -1,11 +1,11 @@
/*
* Asterisk -- A telephony toolkit for Linux.
*
- * Channel Management
+ * Privacy Routines
*
- * Copyright (C) 1999, Mark Spencer
+ * Copyright (C) 1999 - 2005, Mark Spencer
*
- * Mark Spencer <markster@linux-support.net>
+ * Mark Spencer <markster@digium.com>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
@@ -44,7 +44,7 @@ int ast_privacy_check(char *dest, char *cid)
int res;
char key[256], result[256];
if (cid)
- strncpy(tmp, cid, sizeof(tmp) - 1);
+ ast_copy_string(tmp, cid, sizeof(tmp));
ast_callerid_parse(tmp, &n, &l);
if (l) {
ast_shrink_phone_number(l);
@@ -80,7 +80,7 @@ int ast_privacy_set(char *dest, char *cid, int status)
int res;
char key[256];
if (cid)
- strncpy(tmp, cid, sizeof(tmp) - 1);
+ ast_copy_string(tmp, cid, sizeof(tmp));
ast_callerid_parse(tmp, &n, &l);
if (l) {
ast_shrink_phone_number(l);