fix string_inject in rre (thanks @Mokona@octodon.social for finding this bug)

FossilOrigin-Name: acf755ae7b2d5485687f686fc59f71fcabd3c60e185d694e8ece1e7462974e87
This commit is contained in:
crc 2017-12-12 21:31:01 +00:00
parent a452de62a6
commit 80c2ac7f0d

View file

@ -136,6 +136,10 @@ void stack_push(CELL value) {
strings. */
int string_inject(char *str, int buffer) {
if (!str) {
memory[buffer] = 0;
return 0;
}
int m = strlen(str);
int i = 0;
while (m > 0) {