[PATCH vkd3d] vkd3d: Add vkd3d_get_program_name() implementation for macOS.

Józef Kucia joseph.kucia at gmail.com
Thu Aug 1 02:54:09 CDT 2019


On Thu, Aug 1, 2019 at 9:43 AM Dmitry Timoshkov <dmitry at 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.



More information about the wine-devel mailing list