mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-10 14:21:51 +00:00
FS-7500: can't use stristr for this
This commit is contained in:
@@ -987,11 +987,11 @@ static inline int32_t switch_parse_bandwidth_string(const char *bwv)
|
||||
|
||||
if (!strcasecmp(bwv, "auto")) {
|
||||
return -1;
|
||||
} else if (switch_stristr("KB", bwv)) {
|
||||
} else if (strstr(bwv, "KB")) {
|
||||
bw *= 8;
|
||||
} else if (switch_stristr("mb", bwv)) {
|
||||
} else if (strstr(bwv, "mb")) {
|
||||
bw *= 1024;
|
||||
} else if (switch_stristr("MB", bwv)) {
|
||||
} else if (strstr(bwv, "MB")) {
|
||||
bw *= 8192;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user