From e4479d3ce5ef5df978ee6183c74c30dfba8a7539 Mon Sep 17 00:00:00 2001 From: graehl Date: Wed, 21 Jul 2010 00:20:06 +0000 Subject: gzstream git-svn-id: https://ws10smt.googlecode.com/svn/trunk@351 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/gzstream.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'decoder/gzstream.cc') diff --git a/decoder/gzstream.cc b/decoder/gzstream.cc index aa015bff..9678355b 100644 --- a/decoder/gzstream.cc +++ b/decoder/gzstream.cc @@ -18,17 +18,17 @@ // ============================================================================ // // File : gzstream.C -// Revision : $Revision: 1.1 $ -// Revision_date : $Date: 2006/03/30 04:05:52 $ +// Revision : $Revision: 1.7 $ +// Revision_date : $Date: 2003/01/08 14:41:27 $ // Author(s) : Deepak Bandyopadhyay, Lutz Kettner // // Standard streambuf implementation following Nicolai Josuttis, "The // Standard C++ Library". // ============================================================================ -#include "gzstream.h" +#include #include -#include +#include // for memcpy #include #ifdef GZSTREAM_NAMESPACE @@ -96,7 +96,7 @@ int gzstreambuf::underflow() { // used for input buffer only int n_putback = gptr() - eback(); if ( n_putback > 4) n_putback = 4; - memcpy( buffer + (4 - n_putback), gptr() - n_putback, n_putback); + std::memcpy( buffer + (4 - n_putback), gptr() - n_putback, n_putback); int num = gzread( file, buffer+4, bufferSize-4); if (num <= 0) // ERROR or EOF -- cgit v1.2.3