]> git.sur5r.net Git - i3/i3/commit
resolve_tilde: strncpy + strlen is pointless (#3436)
authorOrestis <orestisf1993@gmail.com>
Sun, 7 Oct 2018 18:26:37 +0000 (21:26 +0300)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sun, 7 Oct 2018 18:26:37 +0000 (20:26 +0200)
commit2be4975f18f6e49b53ae683a30b11e435a5515dd
tree864e7e1a7881920beb58ecacb23d592ee4ab9488
parent18dbfe699a61b64239f7397246e015c9ebfb36ce
resolve_tilde: strncpy + strlen is pointless (#3436)

strlen already assumes that the string is NULL-terminated.

Like in https://github.com/i3/i3status/pull/312 but for whatever reason
gcc didn't warn about this here.
libi3/resolve_tilde.c