Skip to content

Commit

Permalink
Be more precise when including/using memset.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hancher committed Jan 2, 2009
1 parent f5a75c9 commit 41bd850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vw/FileIO/DiskImageResourcePDS.cc
Expand Up @@ -32,6 +32,8 @@
#include <vector>
#include <string>

#include <cstring> // For memset()

#include <boost/algorithm/string.hpp>
using namespace boost;

Expand Down Expand Up @@ -362,7 +364,7 @@ void vw::DiskImageResourcePDS::read( ImageBuffer const& dest, BBox2i const& bbox
uint8* dst_data = dst_row;
for( int32 x=0; x<m_format.cols; ++x ) {
if( *((int16*)src_data) < valid_minimum ) {
memset( dst_data, 0, dst_bpp );
std::memset( dst_data, 0, dst_bpp );
}
src_data += src.cstride;
dst_data += dest.cstride;
Expand Down

0 comments on commit 41bd850

Please sign in to comment.