diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-05-10 16:42:03 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-05-10 16:42:03 +0000 |
commit | eba586f053161ff799e273d048f8c203e0ff9181 (patch) | |
tree | 306d71dd59753df2f19dbf604556ae91f74ce697 /lib/uuid | |
parent | 7dc850db3e8bffbb9de5eaa923f08ea8256a045e (diff) | |
download | lvm2-eba586f053161ff799e273d048f8c203e0ff9181.tar.gz |
Fix uuid_from_num() buffer overrun.
Diffstat (limited to 'lib/uuid')
-rw-r--r-- | lib/uuid/uuid.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/uuid/uuid.c b/lib/uuid/uuid.c index fb60a26c6..df4407f8f 100644 --- a/lib/uuid/uuid.c +++ b/lib/uuid/uuid.c @@ -40,8 +40,6 @@ void uuid_from_num(char *uuid, uint32_t num) uuid[i - 1] = _c[num % (sizeof(_c) - 1)]; num /= sizeof(_c) - 1; } - - uuid[ID_LEN] = '\0'; } int lvid_from_lvnum(union lvid *lvid, struct id *vgid, uint32_t lv_num) |