mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
484bd75ce48ade2c34f730c16e783da284a0a509
At least on Fedora 32 with GCC 10.2.1, dnsmasq compilation emits warning: tftp.c: In function ‘tftp_request’: tftp.c:754:3: warning: ‘strcpy’ source argument is the same as destination [-Wrestrict] 754 | strcpy(daemon->namebuff, file); And indeed it is the same source always on line 477, sometimes also on 571 in tftp.c Attached patch fixes the warning and possible undefined behaviour on tftp error.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%