diff --git a/nss/nss_module.c b/nss/nss_module.c index 3cd1940b22..ac94e4d3f0 100644 --- a/nss/nss_module.c +++ b/nss/nss_module.c @@ -41,7 +41,7 @@ pointer manipulation. The "-1" accounts for the trailing NUL included in the sizeof. */ static const char *const __nss_shlib_revision - = LIBNSS_FILES_SO + sizeof("libnss_files.so") - 1; + = &LIBNSS_FILES_SO[sizeof("libnss_files.so") - 1]; /* A single-linked list used to implement a mapping from service names to NSS modules. (Most systems only use five or so modules, so a