projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2984b40
)
Minor fix for cid name
author
Mark Spencer
<markster@digium.com>
Thu, 17 Jul 2003 18:49:05 +0000
(18:49 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 17 Jul 2003 18:49:05 +0000
(18:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1197
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
5636204
..
3699ded
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-3516,8
+3516,8
@@
static char *get_calleridname(char *input,char *output)
/* clear the empty characters in the end */
while(*end && (*end < 33) && end > input)
end--;
- if (end > input)
- strncpy(output,input,(int)(end-input));
+ if (end >= input)
+ strncpy(output,input,(int)(end-input)+1);
else
output = NULL;
}