]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: can't use stristr for this
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Feb 2015 02:03:47 +0000 (20:03 -0600)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:04 +0000 (12:47 -0500)
src/include/switch_utils.h

index a39edb3e567be4ad9e9dfe5efc700d8bc840f73d..0618230056b62a691a000ca74703cbffa190633c 100644 (file)
@@ -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;
                }
        }