diff options
Diffstat (limited to 'tools/imagediff')
-rw-r--r-- | tools/imagediff/image_diff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/imagediff/image_diff.cc b/tools/imagediff/image_diff.cc index 2973987..1dac4a7 100644 --- a/tools/imagediff/image_diff.cc +++ b/tools/imagediff/image_diff.cc @@ -100,7 +100,7 @@ class Image { unsigned char buf[buf_size]; size_t num_read = 0; while ((num_read = fread(buf, 1, buf_size, f)) > 0) { - std::copy(buf, &buf[num_read], std::back_inserter(compressed)); + compressed.insert(compressed.end(), buf, buf + num_read); } file_util::CloseFile(f); |