diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-21 00:20:06 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-21 00:20:06 +0000 |
commit | e4479d3ce5ef5df978ee6183c74c30dfba8a7539 (patch) | |
tree | 3cb0aa07f57442f2b1b4df2d9a86c69c6f11942c | |
parent | 8baa12d8f4973471105a590a7bd42b2ec2e3592a (diff) |
gzstream
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@351 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r-- | decoder/gzstream.cc | 10 | ||||
-rw-r--r-- | decoder/gzstream.h | 4 |
2 files changed, 7 insertions, 7 deletions
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 <gzstream.h> #include <iostream> -#include <cstring> +#include <cstring> // for memcpy #include <stdexcept> #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 diff --git a/decoder/gzstream.h b/decoder/gzstream.h index 5c709490..a7effd90 100644 --- a/decoder/gzstream.h +++ b/decoder/gzstream.h @@ -18,8 +18,8 @@ // ============================================================================ // // File : gzstream.h -// Revision : $Revision: 1.1 $ -// Revision_date : $Date: 2006/03/30 04:05:52 $ +// Revision : $Revision: 1.5 $ +// Revision_date : $Date: 2002/04/26 23:30:15 $ // Author(s) : Deepak Bandyopadhyay, Lutz Kettner // // Standard streambuf implementation following Nicolai Josuttis, "The |