10 Feb
2021
10 Feb
'21
13:04
http://bugzilla.opensuse.org/show_bug.cgi?id=1181882
http://bugzilla.opensuse.org/show_bug.cgi?id=1181882#c5
--- Comment #5 from Ismail D��nmez
strncpy works as intended here, this is a gcc bug https://gcc.gnu.org/bugzilla//show_bug.cgi?id=88059
Yes, I must admit the warning has quite some false positivies. In this case, length is used both for allocation of dest argument (which is strlen of message + 1). Thank you for the workaround.
s/strncpy/strcpy is a bad workaround, though. Removing -Werror should be enough. -- You are receiving this mail because: You are on the CC list for the bug.