compositor: Fix warning in load_module

This commit is contained in:
Benjamin Franzke 2011-05-06 23:19:22 +02:00
parent f2de6c7ba0
commit b7acce60e2

View File

@ -1883,7 +1883,7 @@ load_module(const char *name, const char *entrypoint, void **handle)
if (name[0] != '/')
snprintf(path, sizeof path, MODULEDIR "/%s", name);
else
snprintf(path, sizeof path, name);
snprintf(path, sizeof path, "%s", name);
module = dlopen(path, RTLD_LAZY);
if (!module) {