libfprint/drivers/upekts.c: In function ‘alloc_send_cmd_transfer’: libfprint/drivers/upekts.c:161:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(buf, "Ciao", 4); ^~~~~~~~~~~~~~~~~~~~~~~ Replace with memcpy() to only copy the 4 bytes we need.
Created attachment 139172 [details] [review] upekts: Fix compilation warning libfprint/drivers/upekts.c: In function ‘alloc_send_cmd_transfer’: libfprint/drivers/upekts.c:161:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(buf, "Ciao", 4); ^~~~~~~~~~~~~~~~~~~~~~~ Replace with memcpy() to only copy the 4 bytes we need.
Attachment 139172 [details] pushed as f433a4d - upekts: Fix compilation warning
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.