1.1 --- a/src/share/vm/utilities/vmError.cpp Fri Mar 26 11:10:26 2010 -0400 1.2 +++ b/src/share/vm/utilities/vmError.cpp Wed Mar 31 16:51:18 2010 -0700 1.3 @@ -807,8 +807,8 @@ 1.4 if (fd == -1) { 1.5 // try temp directory 1.6 const char * tmpdir = os::get_temp_directory(); 1.7 - jio_snprintf(buffer, sizeof(buffer), "%shs_err_pid%u.log", 1.8 - (tmpdir ? tmpdir : ""), os::current_process_id()); 1.9 + jio_snprintf(buffer, sizeof(buffer), "%s%shs_err_pid%u.log", 1.10 + tmpdir, os::file_separator(), os::current_process_id()); 1.11 fd = open(buffer, O_WRONLY | O_CREAT | O_TRUNC, 0666); 1.12 } 1.13