Ensure to NULL terminate string
The strncpy() will make path2 non-NULL terminated in the (rare?) cases where filespaceLocation2 is MAXPGPATH chars long. Use strlcpy instead like other places in the codepath does and ensure we always have a NULL terminated string.
Showing
想要评论请 注册 或 登录