hotspot/src/share/vm/utilities/ostream.cpp
changeset 35936 e401b754ae09
parent 35897 beba2418d973
child 36570 9608a7830fe9
child 36508 5f9eee6b383b
--- a/hotspot/src/share/vm/utilities/ostream.cpp	Thu Feb 04 19:27:39 2016 +0100
+++ b/hotspot/src/share/vm/utilities/ostream.cpp	Thu Feb 04 13:42:18 2016 -0800
@@ -380,7 +380,7 @@
 char* get_datetime_string(char *buf, size_t len) {
   os::local_time_string(buf, len);
   int i = (int)strlen(buf);
-  while (i-- >= 0) {
+  while (--i >= 0) {
     if (buf[i] == ' ') buf[i] = '_';
     else if (buf[i] == ':') buf[i] = '-';
   }