Fix typo in parser

FossilOrigin-Name: 2bd8204dfd90dd51073a1c8d974785399272578b8adee4f781363a4c33ca32c0
This commit is contained in:
nekobit 2022-07-02 04:49:36 +00:00
parent c020158001
commit 6d1ef5f938

View file

@ -60,7 +60,7 @@ int parse_path(struct session* ssn,
goto breakpt;
}
read_len = (size_t)after_str - (size_t)(p2 + j);
read_len = (size_t)after_str - (size_t)(p2 + i);
// Copy in new data from the string we just read
tmp = malloc(read_len+1);
strncpy(tmp, after_str - read_len, read_len);