mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-23 00:33:21 +00:00
Use isprint instead of isalpha in determining valid ident string.
This commit is contained in:
parent
00c62ed413
commit
61dbcc0d05
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121026
|
@ -563,7 +563,7 @@ ata_getparam(struct ata_device *atadev, u_int8_t command)
|
|||
}
|
||||
ata_free_request(request);
|
||||
}
|
||||
if (!isalpha(atacap->model[0]) || !isalpha(atacap->model[1]))
|
||||
if (!isprint(atacap->model[0]) || !isprint(atacap->model[1]))
|
||||
error = ENXIO;
|
||||
if (error) {
|
||||
atadev->param = NULL;
|
||||
|
|
Loading…
Reference in a new issue