signed/unsigned compare
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8793 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4795ffc622
commit
85f83e2a2f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue