1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024296: Test "bugs fclasses bug309" is crashed if current directory is into disc-root

Fixed incorrect inclusion of slash symbol to the path.
This commit is contained in:
ski
2016-09-23 17:06:12 +03:00
parent b2bafb33a9
commit 1ae262d9be
2 changed files with 3 additions and 5 deletions

View File

@@ -1022,7 +1022,7 @@ void OSD_Path :: SystemName (
Standard_Integer i, j;
TCollection_AsciiString fullPath;
static Standard_Character trek [ _MAX_PATH ];
Standard_Character trek [ _MAX_PATH ];
Standard_Character chr;
memset(trek,0,_MAX_PATH);
@@ -1048,8 +1048,8 @@ void OSD_Path :: SystemName (
} //end for
fullPath = myDisk + TCollection_AsciiString(trek);
if ( trek[0] ) fullPath += "/";
if ( j >= 2 && trek[j-2] != '/' ) fullPath += "/";
fullPath += ( myName + myExtension );

View File

@@ -1,5 +1,3 @@
puts "TODO ?OCC24296 ALL: OCC309: Error 2"
puts "================"
puts "OCC309"
puts "================"