Gaetan Rivet 92ac1d5a13 eal: fix hotplug device parsing
snprintf returns the length it would have written had the given length
been enough, *terminating null byte excluded*.

It will however limit the length of its writing to given length minus
one, and always put a terminating null-byte at the end of the string.

This must be taken into account when calculating the total length of the
device declaration string.

Fixes: 3054036f054a ("eal: fix possible crash in hotplug")

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2017-08-04 18:07:26 +02:00
..
2017-07-08 17:43:49 +02:00
2017-08-04 01:42:04 +02:00
2017-07-10 12:26:40 +02:00
2015-03-10 12:17:31 +01:00
2015-06-12 11:10:10 +02:00
2015-02-24 20:22:24 +01:00
2017-07-16 17:30:06 +02:00