Ad
  • Default User Avatar
    • tmp is missing a byte for the nul terminator
    • you increment i for every character in y, and you also use i to index target. So if there are non-letter characters in y, you will write out-of-bounds of target.