Mercurial > ecos
changeset 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 | ca9867bef994 |
| children | 9ddefe3aa750 |
| files | host/tools/ecostest/ChangeLog host/tools/ecostest/common/eCosTestPlatform.cpp |
| diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/host/tools/ecostest/ChangeLog +++ b/host/tools/ecostest/ChangeLog @@ -1,3 +1,9 @@ +2009-09-25 John Dallaway <john@dallaway.org.uk> + + * common/eCosTestPlatform.cpp (CeCosTestPlatform::LoadFromDir): Use + PATH_MAX to accommodate long directory names. Issue reported by Paul + Chavent. + 2009-02-09 John Dallaway <john@dallaway.org.uk> * common/eCosTest.cpp (CygPath): Accommodate UNC file paths.
--- 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;
