diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c index c57acac2a..bee8a20ef 100644 --- a/src/pulsecore/module.c +++ b/src/pulsecore/module.c @@ -67,7 +67,7 @@ bool pa_module_exists(const char *name) { /* strip .so from the end of name, if present */ n = pa_xstrdup(name); - p = rindex(n, '.'); + p = strrchr(n, '.'); if (p && pa_streq(p, PA_SOEXT)) p[0] = 0;