Mercurial > hg > truffle
diff src/os/solaris/vm/os_solaris.cpp @ 18007:364b73402247
Merge
author | asaha |
---|---|
date | Thu, 22 May 2014 11:09:06 -0700 |
parents | 6048424d3865 5656140324ed |
children | f73af4455d7d |
line wrap: on
line diff
--- a/src/os/solaris/vm/os_solaris.cpp Tue May 13 23:17:52 2014 -0700 +++ b/src/os/solaris/vm/os_solaris.cpp Thu May 22 11:09:06 2014 -0700 @@ -1741,9 +1741,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"; } @@ -2387,6 +2384,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)) { @@ -2405,7 +2403,7 @@ } } - strcpy(saved_jvm_path, buf); + strncpy(saved_jvm_path, buf, MAXPATHLEN); }