diff options
author | lloyd <[email protected]> | 2014-05-15 02:06:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-05-15 02:06:35 +0000 |
commit | 318b0e20fa1edd2dc700a01e47d31ebb8c219460 (patch) | |
tree | fa0c7b8728cd96a1f12b33b02c02d60ca61cc14e /src | |
parent | 6472e22b40c1a48847820b856cd8a2e25c981b95 (diff) |
Visual C++'s iterator debugging gets cranky with &vec[vec.size()].
Github #21
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/algo_base/symkey.h | 2 | ||||
-rw-r--r-- | src/lib/filters/buf_filt.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/algo_base/symkey.h b/src/lib/algo_base/symkey.h index b47da8a69..a93f456bb 100644 --- a/src/lib/algo_base/symkey.h +++ b/src/lib/algo_base/symkey.h @@ -37,7 +37,7 @@ class BOTAN_DLL OctetString /** * @return end of this string */ - const byte* end() const { return &bits[bits.size()]; } + const byte* end() const { return begin() + bits.size(); } /** * @return this encoded as hex diff --git a/src/lib/filters/buf_filt.cpp b/src/lib/filters/buf_filt.cpp index ca3fa9a3c..60e51b02a 100644 --- a/src/lib/filters/buf_filt.cpp +++ b/src/lib/filters/buf_filt.cpp @@ -55,7 +55,7 @@ void Buffered_Filter::write(const byte input[], size_t input_size) buffer_pos -= total_to_consume; - copy_mem(&buffer[0], &buffer[total_to_consume], buffer_pos); + copy_mem(&buffer[0], &buffer[0] + total_to_consume, buffer_pos); } if(input_size >= final_minimum) |