Appending null character after readlink() call is required #150
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Implementation of the pkgconf_path_add() function assumes that readlink() terminates the symbolic link target path with the null character, which is not the case. The following assignment is required between readlink() and stat() calls:
linkdest[len] = '\0';