Reply to post: strNcpy is also buggy

Boffins debunk study claiming certain languages (cough, C, PHP, JS...) lead to more buggy code than others

aberglas

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....

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon