mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
Minor fix for cid name
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3516,8 +3516,8 @@ static char *get_calleridname(char *input,char *output)
|
|||||||
/* clear the empty characters in the end */
|
/* clear the empty characters in the end */
|
||||||
while(*end && (*end < 33) && end > input)
|
while(*end && (*end < 33) && end > input)
|
||||||
end--;
|
end--;
|
||||||
if (end > input)
|
if (end >= input)
|
||||||
strncpy(output,input,(int)(end-input));
|
strncpy(output,input,(int)(end-input)+1);
|
||||||
else
|
else
|
||||||
output = NULL;
|
output = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user