From c93af6f23d57c9199a6f8e1346c449b29efb5b54 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 17 Sep 2004 14:01:18 +0000 Subject: [PATCH] fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion. 2004-09-17 Paolo Carlini * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion. From-SVN: r87647 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/fstream.tcc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6dfa61ead49..f3f965d25e9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-09-17 Paolo Carlini + + * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional, + as per Nathan's original suggestion. + 2004-09-17 Paolo Carlini * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean diff --git a/libstdc++-v3/include/bits/fstream.tcc b/libstdc++-v3/include/bits/fstream.tcc index d3ea37ffab1..25a4d48cb72 100644 --- a/libstdc++-v3/include/bits/fstream.tcc +++ b/libstdc++-v3/include/bits/fstream.tcc @@ -527,7 +527,7 @@ namespace std { if (__avail == 1) *__s = *this->gptr(); - else if (__avail > 1) + else traits_type::copy(__s, this->gptr(), __avail); __s += __avail; this->gbump(__avail); -- 2.30.2