FSCORE-316

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12366 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-03-03 14:17:28 +00:00
parent 6aca60f545
commit 598854328d
1 changed files with 1 additions and 1 deletions

View File

@ -1475,7 +1475,7 @@ SWITCH_DECLARE(size_t) switch_url_encode(const char *url, char *buf, size_t len)
break; break;
} }
if (*p < ' ' || *p > '~' || strchr(urlunsafe, *p)) { if (*p < ' ' || *p > '~' || strchr(urlunsafe, *p)) {
if ((x + 3) >= len) { if ((x + 3) > len) {
break; break;
} }
buf[x++] = '%'; buf[x++] = '%';