Mercurial > hg > truffle
diff src/os/solaris/vm/os_solaris.cpp @ 20204:d22136881b85
Merge
author | robm |
---|---|
date | Thu, 17 Jul 2014 18:03:26 +0100 |
parents | ce8f6bb717c9 f73af4455d7d |
children | 7848fc12602b |
line wrap: on
line diff
--- a/src/os/solaris/vm/os_solaris.cpp Wed Jul 16 16:45:17 2014 -0700 +++ b/src/os/solaris/vm/os_solaris.cpp Thu Jul 17 18:03:26 2014 +0100 @@ -1711,9 +1711,6 @@ ::abort(); // dump core (for debugging) } -// unused -void os::set_error_file(const char *logfile) {} - // DLL functions const char* os::dll_file_extension() { return ".so"; } @@ -2357,6 +2354,7 @@ // determine if this is a legacy image or modules image // modules image doesn't have "jre" subdirectory len = strlen(buf); + assert(len < buflen, "Ran out of buffer space"); jrelib_p = buf + len; snprintf(jrelib_p, buflen-len, "/jre/lib/%s", cpu_arch); if (0 != access(buf, F_OK)) { @@ -2375,7 +2373,7 @@ } } - strcpy(saved_jvm_path, buf); + strncpy(saved_jvm_path, buf, MAXPATHLEN); }