Skip to content
Snippets Groups Projects
Commit 3866ed99 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

XDR: Fix string alignment

parent 5981641a
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment