The man page of strncpy
states:
char *strncpy(char *dest, const char *src, size_t n);
The strcpy() and strncpy() functions return a pointer to the destination string dest.
Is it possible that strncpy(buff, "something", 9) == 0
be true if char buff[100]
?
UPDATE
I also consider it as not very probable but it's part of a program that I should make to bufferoverflow and this condition stays on my way to achieve this.