use mallocarray(), then set the size afterwards. Prefer if people learn
authorderaadt <deraadt@openbsd.org>
Sun, 11 Jan 2015 03:08:38 +0000 (03:08 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 11 Jan 2015 03:08:38 +0000 (03:08 +0000)
commitb7958b676d779e645e70a21512e0b0d5e13dc684
tree29184f516b079b254f0278039765f7bceeb45d00
parentd7df83f026d1353a69cb0d0a2403a056838905f5
use mallocarray(), then set the size afterwards.  Prefer if people learn
and use this idiom everywhere, it is always safest.
sys/dev/usb/upd.c