Skip to content

Commit

Permalink
std.stream.EndianStream readStringW fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Feb 29, 2012
1 parent c9175dc commit afa00e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/stream.d
Expand Up @@ -2375,8 +2375,8 @@ class EndianStream : FilterStream {

override wchar[] readStringW(size_t length) {
wchar[] result = new wchar[length];
readExact(result.ptr, result.length * wchar.sizeof);
fixBlockBO(&result,2,length);
readExact(result.ptr, length * wchar.sizeof);
fixBlockBO(result.ptr, wchar.sizeof, length);
return result;
}

Expand Down

0 comments on commit afa00e0

Please sign in to comment.