dect
/
asterisk
Archived
13
0
Fork 0

Patch Submitted by BKW on 5/10/2004 to chan_sip.c

Fixing 'show help' inefficency.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2944 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
anthm 2004-05-10 18:45:20 +00:00
parent a34d122a78
commit 5e175511fb
2 changed files with 2 additions and 2 deletions

View File

@ -3749,7 +3749,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req
/* Save User agent */
useragent = get_header(req, "User-Agent");
if(useragent && strcasecmp(useragent, p->useragent)) {
strncpy(p->useragent, get_header(req, "User-Agent"),sizeof(p->useragent));
strncpy(p->useragent, useragent, sizeof(p->useragent));
if (option_verbose > 2) {
ast_verbose(VERBOSE_PREFIX_3 "Saved useragent \"%s\" for peer %s\n",p->useragent,p->name);
}

2
cli.c
View File

@ -770,7 +770,7 @@ static int help_workhorse(int fd, char *match[])
continue;
}
}
ast_cli(fd, "%20.20s %s\n", fullcmd, e->summary);
ast_cli(fd, "%25.25s %s\n", fullcmd, e->summary);
}
return 0;
}