]> diplodocus.org Git - nmh/commit
mhlsbr.c: Use variable for strncpy(3)'s size, not sizeof.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 1 Jul 2018 08:43:05 +0000 (09:43 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 1 Jul 2018 10:12:42 +0000 (11:12 +0100)
commitaf2ad7be43057a4f82dc8a223d79d68bf932ae00
treec858efed5f9f948d0e2a9e50c7d489cea3bea4d2
parentfbd0002a92c15b70b8bfda4c48fff5ded89c7f04
mhlsbr.c: Use variable for strncpy(3)'s size, not sizeof.

Silences gcc 8.1.1's warning that the size of the source was being used,
not the destination.  The destination has just been allocated to be the
size of the source so no overflow can occur.  Move existing variable
that later holds the buffer size to before the allocation and strncpy so
it can be used for those too.
uip/mhlsbr.c