Skip to content
Browse files

Fixed a BinaryReader pointer bug!

Not sure how I made it this far with that bug, but I guess I just never
used that specific method before
  • Loading branch information...
1 parent dd04670 commit a3967448f2a0c2810233cc27b998da3b7d70f119 @etotheipi committed Jan 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cppForSwig/BinaryData.h
View
2 cppForSwig/BinaryData.h
@@ -452,7 +452,7 @@ class BinaryDataRef
// UNSAFE -- you don't know if outData holds enough space for this
void copyTo(uint8_t* outData) const { memcpy( outData, ptr_, (size_t)nBytes_); }
void copyTo(uint8_t* outData, size_t sz) const { memcpy( outData, ptr_, (size_t)sz); }
- void copyTo(uint8_t* outData, size_t offset, size_t sz) const { memcpy( outData, ptr_, (size_t)sz); }
+ void copyTo(uint8_t* outData, size_t offset, size_t sz) const { memcpy( outData, ptr_+offset, (size_t)sz); }
void copyTo(BinaryData & bd) const
{
bd.resize(nBytes_);

0 comments on commit a396744

Please sign in to comment.
Something went wrong with that request. Please try again.