diff options
Diffstat (limited to 'src/lib/xdr.cc')
-rw-r--r-- | src/lib/xdr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/xdr.cc b/src/lib/xdr.cc index 10d265f..b44471f 100644 --- a/src/lib/xdr.cc +++ b/src/lib/xdr.cc @@ -83,7 +83,7 @@ void XDRWriter::put(char const *data) { *buffer++ = 0; } - pos += i; + pos += i - 1; } template <uint32_t TSize> @@ -102,7 +102,7 @@ void XDRWriter::put(char const (&data)[TSize]) { *buffer++ = 0; } - pos += i; + pos += i - 1; } uint32_t XDRReader::get_uint32() |