Attilio Rao 023c800576 The building the dev nameunit string, in devclass_add_device() is based
on the assumption that the unit linked with the device is invariant but
that can change when calling devclass_alloc_unit() (because -1 is passed
or, more simply, because the unit choosen is beyond the table limits).
This results in a completely bogus string building.

Fix this by reserving the necessary room for all the possible characters
printable by a positive integer (we do not allow for negative unit
number).

Reported by:	Sandvine Incorporated
Reviewed by:	emaste
Sponsored by:	Sandvine Incorporated
MFC:		1 week
2009-11-12 00:52:14 +00:00
..
2009-10-27 11:01:15 +00:00
2009-05-18 12:03:43 +00:00
2009-05-27 16:36:54 +00:00
2009-05-29 14:25:51 +00:00
2009-08-23 09:55:06 +00:00
2009-10-27 11:01:15 +00:00
2009-10-27 11:01:15 +00:00
2009-05-26 09:19:21 +00:00
2009-11-04 08:25:58 +00:00
2009-11-08 09:54:25 +00:00