[Tarantool-patches] [PATCH v2] build: GCC warning on strncpy

Kirill Yukhin kyukhin at tarantool.org
Mon Dec 16 16:40:41 MSK 2019


Hello,

On 28 ноя 00:30, Chris Sosnin wrote:
> Thank you for the review!
> See second version below.
> branch: https://github.com/tarantool/tarantool/tree/ksosnin/gh-4515-build-warning
> issue: https://github.com/tarantool/tarantool/issues/4515
> 
> As long as we are sure, that strlen(sd_unix_path) < sizeof(sa.sun_path)
> we can assume that there is always enough space and the path will be
> null-terminated. Thus, copy 1 byte less to get rid of the warning.
> 
> Closes #4515

I've checked your patch into 1.10, 2.2 and master.

--
Regards, Kirill Yukhin


More information about the Tarantool-patches mailing list