mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
Formatting fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7098,13 +7098,17 @@ static char *get_calleridname(char *input, char *output, size_t outputsize)
|
|||||||
int bytes = 0;
|
int bytes = 0;
|
||||||
int maxbytes = outputsize - 1;
|
int maxbytes = outputsize - 1;
|
||||||
|
|
||||||
if (!end || (end == input)) return NULL;
|
if (!end || (end == input))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
/* move away from "<" */
|
/* move away from "<" */
|
||||||
end--;
|
end--;
|
||||||
|
|
||||||
/* we found "name" */
|
/* we found "name" */
|
||||||
if (tmp && tmp < end) {
|
if (tmp && tmp < end) {
|
||||||
end = strchr(tmp+1, '\"');
|
end = strchr(tmp+1, '\"');
|
||||||
if (!end) return NULL;
|
if (!end)
|
||||||
|
return NULL;
|
||||||
bytes = (int) (end - tmp);
|
bytes = (int) (end - tmp);
|
||||||
/* protect the output buffer */
|
/* protect the output buffer */
|
||||||
if (bytes > maxbytes)
|
if (bytes > maxbytes)
|
||||||
|
Reference in New Issue
Block a user