< prev index next >

src/hotspot/share/runtime/os.cpp

Print this page

        

*** 1347,1357 **** // do the actual splitting p = inpath; for (int i = 0 ; i < count ; i++) { size_t len = strcspn(p, os::path_separator()); if (len > JVM_MAXPATHLEN) { ! return NULL; } // allocate the string and add terminator storage char* s = (char*)NEW_C_HEAP_ARRAY(char, len + 1, mtInternal); if (s == NULL) { return NULL; --- 1347,1357 ---- // do the actual splitting p = inpath; for (int i = 0 ; i < count ; i++) { size_t len = strcspn(p, os::path_separator()); if (len > JVM_MAXPATHLEN) { ! //return NULL; } // allocate the string and add terminator storage char* s = (char*)NEW_C_HEAP_ARRAY(char, len + 1, mtInternal); if (s == NULL) { return NULL;
< prev index next >