R. Bernstein wrote:
First, thanks for changing those strcpy's to strncpy.Am I missing something or would "PATH_MAX" better be "len" below?else { tmp_dst[len] = '\0'; strncpy(tmp_src, tmp_dst, PATH_MAX); }
It's because (according to manpage) readlink adds no '\0' to the string and instead returns the length (len in this case). _______________________________________________ Libcdio-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/libcdio-devel
