Commit 2b9441e
committed
Correctly terminate Sexp_variable text with a null byte
I'm pretty sure that this is a bug since the documentation of
std::string::copy says that it doesn't append a 0 byte so our code would
need to do it manually. Instead, the code appended the 0 byte to the
input buffer which also conflicts with const-correctness (the function
was used on a lua-string buffer which should be const outside Lua).1 parent 9b1b3e0 commit 2b9441e
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28877 | 28877 | | |
28878 | 28878 | | |
28879 | 28879 | | |
28880 | | - | |
| 28880 | + | |
28881 | 28881 | | |
28882 | 28882 | | |
28883 | 28883 | | |
| |||
28891 | 28891 | | |
28892 | 28892 | | |
28893 | 28893 | | |
28894 | | - | |
| 28894 | + | |
28895 | 28895 | | |
28896 | 28896 | | |
28897 | 28897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
| 1179 | + | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| |||
0 commit comments