Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When copying the final part of the string, after the last found index, I forgot to subtract the length of the word of the replacement. It would copy too much bytes this way. memcpy(temp, pstr, filelen - j) --> segfault memcpy(temp, pstr, filelen - (j + oldLen)) --> :)
- Loading branch information