diff host/tools/ecostest/common/eCosTestPlatform.cpp @ 2921:54e4112a7eef

* common/eCosTestPlatform.cpp (CeCosTestPlatform::LoadFromDir): Use PATH_MAX to accommodate long directory names. Issue reported by Paul Chavent.
author jld
date Fri, 25 Sep 2009 07:55:36 +0000
parents 74dbf4c3f2e1
children c40674be6da8
line wrap: on
line diff
--- a/host/tools/ecostest/common/eCosTestPlatform.cpp
+++ b/host/tools/ecostest/common/eCosTestPlatform.cpp
@@ -1,7 +1,7 @@
 // ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
 // -------------------------------------------                              
 // This file is part of the eCos host tools.                                
-// Copyright (C) 1998, 1999, 2000, 2003 Free Software Foundation, Inc.      
+// Copyright (C) 1998, 1999, 2000, 2003, 2009 Free Software Foundation, Inc.      
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
@@ -58,7 +58,7 @@ bool CeCosTestPlatform::LoadFromDir(LPCT
   bool rc=true;
   TRACE(_T("CeCosTestPlatform::LoadFromDir %s\n"),pszDir);
   // Find all the files in directory pszDir and load from each of them
-  TCHAR szOrigDir[256];
+  TCHAR szOrigDir[PATH_MAX];
   _tgetcwd(szOrigDir,sizeof szOrigDir-1);
   if(0==_tchdir(pszDir)){
     String strFile;