]> git.sur5r.net Git - i3/i3status/commit
strncpy + strlen is pointless (#312)
authorOrestis <orestisf1993@gmail.com>
Sun, 7 Oct 2018 18:26:24 +0000 (21:26 +0300)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sun, 7 Oct 2018 18:26:24 +0000 (20:26 +0200)
commit494efd49a26ed96d7b0d3d4f69099ccd83e2ccba
tree8528ff82b198c81ce970ef87301d8a649e3cd0ea
parent5c9d12befa760e8c7790219f79de837feb5d8ff0
strncpy + strlen is pointless (#312)

strlen already assumes that the string is NULL-terminated.

Fixes -Wstringop-overflow warning
i3status.c