System: Fix getMagicNumber on windows.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 31 Aug 2010 06:36:33 +0000 (06:36 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 31 Aug 2010 06:36:33 +0000 (06:36 +0000)
commit1211d43abfd870c969ffb875d646e762a420e666
treeb3481c5a0bb7aa3c06644a9e6f072299fbe5fbe9
parenta805b2ded869d5342397d0c62c3c3848900e5c8f
System: Fix getMagicNumber on windows.

getMagicNumber was treating the _binary_ data it read in as a
null terminated string. This resulted in the std::string
calculating the length, and causing an assert in other code that
assumed that the length it passed was the same as the length of
the string it would get back.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112586 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/Win32/Path.inc