Summary: | upekts: Fix compilation warning | ||
---|---|---|---|
Product: | libfprint | Reporter: | Bastien Nocera <bugzilla> |
Component: | libfprint | Assignee: | libfprint-bugs |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | bugzilla |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | upekts: Fix compilation warning |
Description
Bastien Nocera
2018-04-27 12:25:27 UTC
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.