[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: kern/39514: ataraid(4): basic bio(4) support
The following reply was made to PR kern/39514; it has been noted by GNATS.
From: matthew green <mrg%eterna.com.au@localhost>
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
Subject: re: kern/39514: ataraid(4): basic bio(4) support
Date: Fri, 12 Sep 2008 10:13:53 +1000
+ char aai_name; /* array volume name */
[ ... ]
+ if (aai->aai_name)
+ strlcpy(bv->bv_vendor, aai->aai_name,
this will always be true.
it seems that you should make aai_name a char * instead
of an array, and to malloc/free the space for it as
necessary. limiting names to 31 chars is going to bite
someone in the future.
Main Index |
Thread Index |