strncpy in libc for PIC16 didn't follow this ANSI standard requirement:
If the length of src is less than n, strncpy() writes additional null bytes to dest to ensure that a total of n bytes are written.
This patch fixes it. Now, PIC16 regression tests pass bug-2231 which addresses the same bug for z80 port.
Log in to post a comment.