rcgldr’s suggestion will work (plus removing the unnecessary * on line 22), but you can also convert your code to work with Unicode. I would argue that changing the code is a better solution, as it makes your program more flexible, but also requires keeping in mind the difference between 1-byte...