Use isprint instead of isalpha in determining valid ident string.

This commit is contained in:
sos 2003-10-12 11:10:41 +00:00
parent a6ff42e2be
commit 10cc9981e2

View File

@ -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;