signed/unsigned compare

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8793 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-06-10 22:55:38 +00:00
parent 4795ffc622
commit 85f83e2a2f
1 changed files with 1 additions and 1 deletions

View File

@ -1751,7 +1751,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
}
if (offset >= 0) {
if (offset > strlen(sub_val)) {
if ((size_t)offset > strlen(sub_val)) {
*sub_val = '\0';
} else {
sub_val += offset;