harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r795108 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystrftime.c
Date Fri, 17 Jul 2009 14:55:54 GMT
Author: odeakin
Date: Fri Jul 17 14:55:54 2009
New Revision: 795108

URL: http://svn.apache.org/viewvc?rev=795108&view=rev
Log:
Fix for HARMONY-6274 ([jdwp][java6] Garbled output in JDWP trace)

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystrftime.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystrftime.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystrftime.c?rev=795108&r1=795107&r2=795108&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystrftime.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hystrftime.c
Fri Jul 17 14:55:54 2009
@@ -100,7 +100,7 @@
               format++;
               break;
             case 'Y':
-              if (index + 4 >= bufLen - 1)
+              if (index + 4 >= bufLen)
                 {
                   return bufLen;
                 }
@@ -110,7 +110,7 @@
               format++;
               break;
             case 'm':
-              if (index + 2 >= bufLen - 1)
+              if (index + 2 >= bufLen)
                 {
                   return bufLen;
                 }
@@ -120,7 +120,7 @@
               format++;
               break;
             case 'b':
-              if (index + strlen (abbMonthName[tm.month - 1]) >= bufLen - 1)
+              if (index + strlen (abbMonthName[tm.month - 1]) >= bufLen)
                 {
                   return bufLen;
                 }
@@ -131,7 +131,7 @@
               format++;
               break;
             case 'd':
-              if (index + 2 >= bufLen - 1)
+              if (index + 2 >= bufLen)
                 {
                   return bufLen;
                 }
@@ -141,7 +141,7 @@
               format++;
               break;
             case 'H':
-              if (index + 2 >= bufLen - 1)
+              if (index + 2 >= bufLen)
                 {
                   return bufLen;
                 }
@@ -151,7 +151,7 @@
               format++;
               break;
             case 'M':
-              if (index + 2 >= bufLen - 1)
+              if (index + 2 >= bufLen)
                 {
                   return bufLen;
                 }
@@ -161,7 +161,7 @@
               format++;
               break;
             case 'S':
-              if (index + 2 >= bufLen - 1)
+              if (index + 2 >= bufLen)
                 {
                   return bufLen;
                 }



Mime
View raw message