summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-19 09:53:35 -0400
committerLioncash <mathew1800@gmail.com>2018-07-19 09:57:48 -0400
commitd6e9b96e2f16dd7aa37e580e5c2b10c15fc82426 (patch)
tree7e444921bee8ca9922431a3bd6da6e3ff9375690 /src/common/string_util.cpp
parentcd4fca8447b56af3747b2033c315e986cfe32826 (diff)
fsp_srv: Respect write length in Write()
Previously we were just copying the data whole-sale, even if the length was less than the total data size. This effectively makes the actual_data vector useless, which is likely not intended. Instead, amend this to only copy the given length amount of data. At the same time, we can avoid zeroing out the data before using it by passing iterators to the constructor instead of a size.
Diffstat (limited to 'src/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions