mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
10
privacy.c
10
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);
|
||||
|
||||
Reference in New Issue
Block a user