Mark Nelson e28ffe90fd util/guest-random: Fix size arg to tail memcpy
We know that in the body of this if statement i is less than len, so
we really should be copying len - i bytes not i - len bytes.

Fix this typo.

Fixes: 8d8404f1564 ("util: Add qemu_guest_getrandom and associated routines")
Signed-off-by: Mark Nelson <mdnelson8@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210709120600.11080-1-mdnelson8@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2021-07-09 18:42:46 +02:00
..
2020-01-06 18:41:32 +04:00
2021-07-06 08:33:51 +02:00
2019-09-11 08:46:17 +02:00
2021-05-10 13:55:28 +02:00
2020-12-10 17:16:44 +01:00
2021-06-13 17:42:40 -07:00
2021-07-09 18:42:46 +02:00
2021-04-30 12:27:47 +02:00
2021-04-01 15:27:44 +04:00