mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
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 >= 0) {
|
||||||
if (offset > strlen(sub_val)) {
|
if ((size_t)offset > strlen(sub_val)) {
|
||||||
*sub_val = '\0';
|
*sub_val = '\0';
|
||||||
} else {
|
} else {
|
||||||
sub_val += offset;
|
sub_val += offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user