diff options
Diffstat (limited to 'libstdc++-v3/src/streambuf.cc')
-rw-r--r-- | libstdc++-v3/src/streambuf.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/src/streambuf.cc b/libstdc++-v3/src/streambuf.cc index 2e72559d827..5bcd0ea8d58 100644 --- a/libstdc++-v3/src/streambuf.cc +++ b/libstdc++-v3/src/streambuf.cc @@ -1,6 +1,7 @@ // Stream buffer classes -*- C++ -*- -// Copyright (C) 2004, 2005, 2006, 2009 Free Software Foundation, Inc. +// Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -47,7 +48,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (__n > 1) { const streamsize __wrote = __sbout->sputn(__sbin->gptr(), __n); - __sbin->gbump(__wrote); + __sbin->__safe_gbump(__wrote); __ret += __wrote; if (__wrote < __n) { @@ -87,7 +88,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION if (__n > 1) { const streamsize __wrote = __sbout->sputn(__sbin->gptr(), __n); - __sbin->gbump(__wrote); + __sbin->__safe_gbump(__wrote); __ret += __wrote; if (__wrote < __n) { |