# HG changeset patch # User jld # Date 1253865336 0 # Node ID 54e4112a7eefa8d6909604ec496f6abbe2233d54 # Parent ca9867bef994c3428dd3aa674fe504025e032a39 * common/eCosTestPlatform.cpp (CeCosTestPlatform::LoadFromDir): Use PATH_MAX to accommodate long directory names. Issue reported by Paul Chavent. diff --git a/host/tools/ecostest/ChangeLog b/host/tools/ecostest/ChangeLog --- a/host/tools/ecostest/ChangeLog +++ b/host/tools/ecostest/ChangeLog @@ -1,3 +1,9 @@ +2009-09-25 John Dallaway + + * common/eCosTestPlatform.cpp (CeCosTestPlatform::LoadFromDir): Use + PATH_MAX to accommodate long directory names. Issue reported by Paul + Chavent. + 2009-02-09 John Dallaway * common/eCosTest.cpp (CygPath): Accommodate UNC file paths. diff --git a/host/tools/ecostest/common/eCosTestPlatform.cpp b/host/tools/ecostest/common/eCosTestPlatform.cpp --- 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;