]> diplodocus.org Git - nmh/commitdiff
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)
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.


No differences found