hotspot/src/os/bsd/vm/os_bsd.cpp
Print this page
rev 5893 : 8030350: Enable additional compiler warnings for GCC
Reviewed-by: dholmes, coleenp
@@ -1832,11 +1832,11 @@
// Add the appropriate client or server subdir
len = strlen(buf);
jrelib_p = buf + len;
snprintf(jrelib_p, buflen-len, "/%s", COMPILER_VARIANT);
if (0 != access(buf, F_OK)) {
- snprintf(jrelib_p, buflen-len, "");
+ snprintf(jrelib_p, buflen-len, "%s", "");
}
// If the path exists within JAVA_HOME, add the JVM library name
// to complete the path to JVM being overridden. Otherwise fallback
// to the path to the current library.