Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information