summaryrefslogtreecommitdiff
path: root/mysys/my_uuid.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-01-04 20:31:26 +0200
committerMichael Widenius <monty@askmonty.org>2010-01-04 20:31:26 +0200
commitc10e72d7e635c10ce0e1c0dabc47ae4cedb42881 (patch)
treec745049d83b8c15be1e090d263fbabee3f7ce797 /mysys/my_uuid.c
parent88a7487d4fa289d4e28555abd30d6c840783bb60 (diff)
downloadmariadb-git-c10e72d7e635c10ce0e1c0dabc47ae4cedb42881.tar.gz
Fixed bug in my_uuid() that caused failures on hpux and ia64
Diffstat (limited to 'mysys/my_uuid.c')
-rw-r--r--mysys/my_uuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_uuid.c b/mysys/my_uuid.c
index d1e8331aaa1..f115806b4e9 100644
--- a/mysys/my_uuid.c
+++ b/mysys/my_uuid.c
@@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong seed2)
*/
/* purecov: begin inspected */
my_rnd_init(&uuid_rand, (ulong) (seed2+ now/2), (ulong) (now+rand()));
- for (i=0; i < sizeof(mac); i++)
+ for (i=0; i < array_elements(uuid_suffix) -2 ; i++)
mac[i]= (uchar)(my_rnd(&uuid_rand)*255);
/* purecov: end */
}