Hi,
the xmlParser code is not originally part of libmsn project, but it is good to know that only a few issues were spotted.
to use strncpy() we need to know exactly the length of the string, and using for example strlen() (as sizeof() will return the size of the pointer in this case) it will behave exactly the same way. IIRC strcpy() will copy the string until it finds a '\0', which is the same as using strncpy() and a strlen() to find out the size of the string.
am I missing something?
Hi,
the xmlParser code is not originally part of libmsn project, but it is good to know that only a few issues were spotted.
to use strncpy() we need to know exactly the length of the string, and using for example strlen() (as sizeof() will return the size of the pointer in this case) it will behave exactly the same way. IIRC strcpy() will copy the string until it finds a '\0', which is the same as using strncpy() and a strlen() to find out the size of the string.
am I missing something?
Anyway thanks for the report.