Avoid any buffer overflows here by checking we don't go over PATH_MAX with stupid module names. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>