Yes, on this code also I have null-terminated the string str2.