Permalink
Browse files

Merge pull request #352 from 9rnsr/fix7444

Additional fix Issue 7444 in Posix platforms
  • Loading branch information...
2 parents af67d10 + e589564 commit a54f41c98aa26eeb70274e8b78d8abfb575bcebc @alexrp alexrp committed Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rt/cover.d
View
@@ -354,7 +354,7 @@ bool readFile( string name, ref char[] buf )
else version( Posix )
{
char[] namez = new char[name.length + 1];
- namez[0 .. name.length] = name;
+ namez[0 .. name.length] = name[];
namez[$ - 1] = 0;
int file = open( namez.ptr, O_RDONLY );

0 comments on commit a54f41c

Please sign in to comment.