diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-08-31 06:36:33 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-08-31 06:36:33 +0000 |
commit | 1211d43abfd870c969ffb875d646e762a420e666 (patch) | |
tree | b3481c5a0bb7aa3c06644a9e6f072299fbe5fbe9 /lib/System/Path.cpp | |
parent | a805b2ded869d5342397d0c62c3c3848900e5c8f (diff) |
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
Diffstat (limited to 'lib/System/Path.cpp')
0 files changed, 0 insertions, 0 deletions