diff options
author | Karel Zak <kzak@redhat.com> | 2008-01-09 15:13:38 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-01-09 16:15:07 +0100 |
commit | 1b4f9b167b2d71fc12acdc953aa34474bfa93f73 (patch) | |
tree | beaaabd90487ed7faf4b8d0e36cee528406abc13 /extras | |
parent | 6e509e539b15ae882afd8ce3fafe1fbd33008509 (diff) |
volume_id: fix UUID raw buffer usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'extras')
-rw-r--r-- | extras/volume_id/lib/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/volume_id/lib/util.c b/extras/volume_id/lib/util.c index c094661ccc..0a3bd39992 100644 --- a/extras/volume_id/lib/util.c +++ b/extras/volume_id/lib/util.c @@ -215,8 +215,8 @@ void volume_id_set_usage(struct volume_id *id, enum volume_id_usage usage_id) void volume_id_set_label_raw(struct volume_id *id, const uint8_t *buf, size_t count) { - if (count > sizeof(id->label)) - count = sizeof(id->label); + if (count > sizeof(id->label_raw)) + count = sizeof(id->label_raw); memcpy(id->label_raw, buf, count); id->label_raw_len = count; |