From 12da9f7ec65d66f31a13d16e3f03aefc119c3fa9 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 8 Aug 2019 09:36:17 +0200 Subject: [PATCH] virUUIDFormat: s/VIR_UUID_RAW_LEN/VIR_UUID_BUFLEN/ in comment The function takes raw UUID and formats it into string representation. However, the comment mistakenly states that the expected size of raw UUID buffer is VIR_UUID_RAW_LEN bytes. We don't have such constant since v0.3.2~24. It should have been VIR_UUID_BUFLEN. Signed-off-by: Michal Privoznik Reviewed-by: Jiri Denemark --- src/util/viruuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/viruuid.c b/src/util/viruuid.c index 0c12ddcc3e..8930a0e199 100644 --- a/src/util/viruuid.c +++ b/src/util/viruuid.c @@ -141,7 +141,7 @@ virUUIDParse(const char *uuidstr, unsigned char *uuid) /** * virUUIDFormat: - * @uuid: array of VIR_UUID_RAW_LEN bytes to store the raw UUID + * @uuid: array of VIR_UUID_BUFLEN bytes to store the raw UUID * @uuidstr: array of VIR_UUID_STRING_BUFLEN bytes to store the * string representation of the UUID in. The resulting string * will be NULL terminated.