aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cc/windows-manifest.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/build2/cc/windows-manifest.cxx b/build2/cc/windows-manifest.cxx
index d840f67..4393fbf 100644
--- a/build2/cc/windows-manifest.cxx
+++ b/build2/cc/windows-manifest.cxx
@@ -105,10 +105,7 @@ namespace build2
try
{
ifdstream ifs (mf);
- string s;
- getline (ifs, s, '\0');
-
- if (s == m)
+ if (ifs.read_text () == m)
return make_pair (move (mf), false);
}
catch (const io_error&)