2 ms·strncpy was a bad mistake. If you know the length and there's no null termination, you use memcpy instead.by Dwedit 3y agostrncpy was a bad mistake. If you know the length and there's no null termination, you use memcpy instead.