Merge branch '195-fix-hp-backend-compiler-warning' into 'master'

hp: Fix [-Wstringop-truncation] compiler warning

Closes #195

See merge request sane-project/backends!279
merge-requests/280/merge
Ralph Little 2019-12-23 16:49:11 +00:00
commit 9527e72a53
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -523,8 +523,8 @@ sanei_hp_nonscsi_new (HpScsi * newp, const char * devname, HpConnect connect)
}
/* For SCSI-devices we would have the inquire command here */
strncpy ((char *)new->inq_data, "\003zzzzzzzHP ------ R000",
sizeof (new->inq_data));
memcpy (new->inq_data, "\003zzzzzzzHP ------ R000",
sizeof (new->inq_data));
new->bufp = new->buf + HP_SCSI_CMD_LEN;
new->devname = sanei_hp_alloc ( strlen ( devname ) + 1 );