diff options
author | Nicolas Hillegeer <nicolashillegeer@gmail.com> | 2017-04-07 12:29:17 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-07 12:29:17 +0200 |
commit | 1813076c448f1039db33e08e83b7f1f2011db0ee (patch) | |
tree | 952d791112403c35dddb3370b8d0ab69ee7fc2b7 /src/nvim/eval/decode.c | |
parent | 30e1cda8acb7bd8120348d1812cfd9ecd8be8528 (diff) | |
download | rneovim-1813076c448f1039db33e08e83b7f1f2011db0ee.tar.gz rneovim-1813076c448f1039db33e08e83b7f1f2011db0ee.tar.bz2 rneovim-1813076c448f1039db33e08e83b7f1f2011db0ee.zip |
eval: delimit string with NUL byte (#6467)
A recent refactor left cpy without a NUL terminator, simplify the code
instead of patching over it.
Instead of plain memcpy, it'd be better to employ harder to misuse string
functions made for this purpose like xstrlcpy(), but path_tail() takes
char_u arguments and returns them, leading to a lot of ugly casting.
Fixes #6431.
Diffstat (limited to 'src/nvim/eval/decode.c')
0 files changed, 0 insertions, 0 deletions