On Thu, Aug 1, 2019 at 9:43 AM Dmitry Timoshkov dmitry@baikal.ru wrote:
It doesn not in case of insufficient target buffer size. That's probably not the common case though, however strncpy() always fills up the buffer with zeros which is worst behaviour ever, so it's probably better to just use plain strcpy().
Right, we even place '\0' ourselves in vkd3d_get_program_name(). Sorry for the misleading comment.