src/hotspot/os/linux/os_linux.inline.hpp
changeset 50199 83d8b3a25f25
parent 49957 746229cc1ab0
child 50667 cc58f1fa0438
--- a/src/hotspot/os/linux/os_linux.inline.hpp	Mon May 21 11:43:57 2018 -0700
+++ b/src/hotspot/os/linux/os_linux.inline.hpp	Mon May 21 15:15:58 2018 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -34,9 +34,9 @@
 #include <poll.h>
 #include <netdb.h>
 
-// File names are case-sensitive on windows only
-inline int os::file_name_strcmp(const char* s1, const char* s2) {
-  return strcmp(s1, s2);
+// File names are case-insensitive on windows only
+inline int os::file_name_strncmp(const char* s1, const char* s2, size_t num) {
+  return strncmp(s1, s2, num);
 }
 
 inline bool os::obsolete_option(const JavaVMOption *option) {