diff options
Diffstat (limited to 'src/lib/xdr16.cc')
-rw-r--r-- | src/lib/xdr16.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/xdr16.cc b/src/lib/xdr16.cc index a9442bb..b1fb7ca 100644 --- a/src/lib/xdr16.cc +++ b/src/lib/xdr16.cc @@ -97,7 +97,7 @@ void XDRWriter::put(char const *data) { *buffer++ = 0; } - pos += i; + pos += i - 1; } template <uint16_t TSize> @@ -116,7 +116,7 @@ void XDRWriter::put(char const (&data)[TSize]) { *buffer++ = 0; } - pos += i; + pos += i - 1; } uint16_t XDRReader::get_uint16() |