strNcpy is also buggy
It does not add a null to the end if the string is exactly the same size. Which can easily lead to buffer overflows if the user is not careful.
Never had a buffer overflow in Java. Nor .Net....
It does not add a null to the end if the string is exactly the same size. Which can easily lead to buffer overflows if the user is not careful.
Never had a buffer overflow in Java. Nor .Net....