harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r479653 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hyfile.c
Date Mon, 27 Nov 2006 15:13:34 GMT
Author: pyang
Date: Mon Nov 27 07:13:34 2006
New Revision: 479653

URL: http://svn.apache.org/viewvc?view=rev&rev=479653
Log:
Apply the patch for HARMONY-2270 ([classlib][unit] tests.api.java.io.FileTest@test_mkdir failes
on win XP)

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hyfile.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hyfile.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hyfile.c?view=diff&rev=479653&r1=479652&r2=479653
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hyfile.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/windows/hyfile.c
Mon Nov 27 07:13:34 2006
@@ -337,7 +337,7 @@
     int j=0;
     int lastbackslash=0;
     if(len >= 248){
-        len =len + 4;
+        len =len + 5;
         canonicalpath = portLibrary->mem_allocate_memory(portLibrary, len);
         strcpy(canonicalpath,"\\\\?\\");
         for(i==0,j=4;i<len;i++){
@@ -357,6 +357,7 @@
                 j++;
             }
         }
+        canonicalpath[j]='\0';
         returnVar = CreateDirectory (canonicalpath, 0);
         portLibrary->mem_free_memory(portLibrary, canonicalpath);
     }else{



Mime
View raw message