diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-07-13 04:16:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-07-12 22:16:43 -0400 |
commit | 72ad5a16e734062046965023726791e0e35a50be (patch) | |
tree | 50483c39215f8e92d159be8b7494828bca3ceab6 /scripts/genvimvim.lua | |
parent | 448dd2adfa48b1b1a7dd4c5d0bb377dc09dbbd0d (diff) | |
download | rneovim-72ad5a16e734062046965023726791e0e35a50be.tar.gz rneovim-72ad5a16e734062046965023726791e0e35a50be.tar.bz2 rneovim-72ad5a16e734062046965023726791e0e35a50be.zip |
Fix String_eq() (#5051)
Change implementation to compare sequences of bytes instead of C
strings.
The former implementation would return "false positives" in these cases:
"\0a" and "\0b": C strings are NUL-terminated, so it would compare two
empty strings.
"a" and "ab": If both strings aren't the same length, it would
compare only up to the length of the shorter one.
Fixes #5046.
Diffstat (limited to 'scripts/genvimvim.lua')
0 files changed, 0 insertions, 0 deletions