Merged silc_1_1_branch to trunk.
[silc.git] / apps / irssi / src / core / modules-load.c
index 2ae029e845077769b2d16093af72ade6439ac33f..42703fc653a14da643087cf8552b48657598111c 100644 (file)
@@ -97,7 +97,7 @@ static char *module_get_sub(const char *name, const char *root)
            strcmp(name+rootlen, "_core") == 0)
                 return g_strdup("core");
 
-       if (namelen+1 > rootlen && name[namelen-rootlen-1] == '_' &&
+       if (namelen > rootlen && name[namelen-rootlen-1] == '_' &&
            strcmp(name+namelen-rootlen, root) == 0)
                 return g_strndup(name, namelen-rootlen-1);