From: <mie...@us...> - 2008-01-16 17:42:00
|
Revision: 2242 http://oorexx.svn.sourceforge.net/oorexx/?rev=2242&view=rev Author: miesfeld Date: 2008-01-16 09:42:03 -0800 (Wed, 16 Jan 2008) Log Message: ----------- Fix rexxutil::SysFileTree for case where file spec has no slash Modified Paths: -------------- interpreter-3.x/trunk/rexutils/windows/rexxutil.cpp Modified: interpreter-3.x/trunk/rexutils/windows/rexxutil.cpp =================================================================== --- interpreter-3.x/trunk/rexutils/windows/rexxutil.cpp 2008-01-16 16:30:26 UTC (rev 2241) +++ interpreter-3.x/trunk/rexutils/windows/rexxutil.cpp 2008-01-16 17:42:03 UTC (rev 2242) @@ -947,7 +947,7 @@ char *filename) { size_t len; /* length of filespec */ - size_t LastSlashPos; /* position of last slash */ + int LastSlashPos; /* position of last slash */ char szBuff[MAX_PATH]; /* used to save current dir */ char drv[3]; /* used to change dir */ size_t i=0; @@ -973,7 +973,7 @@ strcpy(string, "..\\*.*"); /* make it a ..\*.* request */ len = strlen(string); /* Get length of full file */ /* spec */ - LastSlashPos = len; /* Get max pos of last '\' */ + LastSlashPos = (int)len; /* Get max pos of last '\' */ /* Step back through string until at begin or at '\' char */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |