commit | 0796825e08da408fba6614d8a135a264d37ef9fe | [log] [tgz] |
---|---|---|
author | Andre Przywara <andre.przywara@arm.com> | Mon Feb 04 16:34:58 2019 +0000 |
committer | Will Deacon <will.deacon@arm.com> | Fri Feb 08 16:21:57 2019 +0000 |
tree | 4fb181b7554b69d6504f333790e7929b38bfc872 | |
parent | 05755b29e63a9c73ba29c8b7c632570727d7afe7 [diff] |
net/dhcp: avoid misleading strncpy The code for copying an empty IP address into the DHCP opt buffer used strncpy, however used the source length as the size argument. GCC 8.x complains about it. Since the source string is actually fixed, just revert to the old strcpy, which gives us actually the same level of security in this case, but makes the compiler happy. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>