Petr Menšík
484bd75ce4
tftp warning fix.
...
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.
2021-03-17 14:40:04 +00:00
..
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-02-28 17:56:54 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-03-12 21:57:57 +00:00
2021-01-22 18:50:43 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-02-18 21:50:33 +00:00
2021-01-24 22:25:13 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2020-03-19 21:56:45 +00:00
2021-01-24 21:59:37 +00:00
2021-03-12 21:57:57 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-03-02 21:36:45 +00:00
2021-03-12 22:09:14 +00:00
2021-03-12 21:57:57 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00
2019-01-02 22:48:59 +00:00
2021-03-17 14:40:04 +00:00
2021-01-24 21:59:37 +00:00
2021-01-24 21:59:37 +00:00