aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-01-02 12:12:10 +0000
committerEd Schouten <ed@FreeBSD.org>2012-01-02 12:12:10 +0000
commitdc15eac046a11d0a831eedf97459900227c50fb8 (patch)
treec3375fb3aa9ccc6f33c26a511457552dfbab74a7 /sys/dev/ata
parent762ad1d61427188c189f601d7315496ca15e9e4f (diff)
Notes
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index a45221a3c3f4..538834920984 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -532,8 +532,8 @@ ad_describe(device_t dev)
u_int8_t *marker, vendor[64], product[64];
/* try to separate the ATA model string into vendor and model parts */
- if ((marker = index(atadev->param.model, ' ')) ||
- (marker = index(atadev->param.model, '-'))) {
+ if ((marker = strchr(atadev->param.model, ' ')) ||
+ (marker = strchr(atadev->param.model, '-'))) {
int len = (marker - atadev->param.model);
strncpy(vendor, atadev->param.model, len);