Skip to content
Snippets Groups Projects
Commit a48fdb83 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Merged revisions 51195 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r51195 | tilghman | 2007-01-17 14:56:15 -0600 (Wed, 17 Jan 2007) | 12 lines

Merged revisions 51194 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r51194 | tilghman | 2007-01-17 14:52:21 -0600 (Wed, 17 Jan 2007) | 4 lines

When ast_strip_quoted was called with a zero-length string, it would treat a
NULL as if it were the quoting character (and would thus return the string
in memory immediately following the passed-in string).

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c71d6c12
No related branches found
No related tags found
No related merge requests found
...@@ -653,7 +653,7 @@ char *ast_strip_quoted(char *s, const char *beg_quotes, const char *end_quotes) ...@@ -653,7 +653,7 @@ char *ast_strip_quoted(char *s, const char *beg_quotes, const char *end_quotes)
char *q; char *q;
s = ast_strip(s); s = ast_strip(s);
if ((q = strchr(beg_quotes, *s))) { if ((q = strchr(beg_quotes, *s)) && *q != '\0') {
e = s + strlen(s) - 1; e = s + strlen(s) - 1;
if (*e == *(end_quotes + (q - beg_quotes))) { if (*e == *(end_quotes + (q - beg_quotes))) {
s++; s++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment