diff options
author | Joe Thornber <thornber@redhat.com> | 2001-12-20 16:05:14 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2001-12-20 16:05:14 +0000 |
commit | 2041d905a93c14df744f2af41fee0060c83b5178 (patch) | |
tree | 99e9b46bc3ed1a3e98909692d3c899b9910d7d04 /lib/uuid | |
parent | 493793dcbcb86b3ea01b6afcb916f42bcecda4eb (diff) | |
download | lvm2-2041d905a93c14df744f2af41fee0060c83b5178.tar.gz |
o Added a quick vgcfgbackup, needs parameters as yet.
Diffstat (limited to 'lib/uuid')
-rw-r--r-- | lib/uuid/uuid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/uuid/uuid.c b/lib/uuid/uuid.c index 2904e0b49..92b85d934 100644 --- a/lib/uuid/uuid.c +++ b/lib/uuid/uuid.c @@ -79,6 +79,7 @@ int id_cmp(struct id *lhs, struct id *rhs) } #define GROUPS (ID_LEN / 4) + int id_write_format(struct id *id, char *buffer, size_t size) { int i; @@ -92,7 +93,7 @@ int id_write_format(struct id *id, char *buffer, size_t size) buffer[(i * 5) + 4] = '-'; } - buffer[GROUPS * 5] = '\0'; + buffer[(GROUPS * 5) - 1] = '\0'; return 1; } |