maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #01847
bzr commit into MariaDB 5.1, with Maria 1.5:maria branch (monty:2789)
#At lp:maria based on revid:monty@xxxxxxxxxxxx-20100104182529-kf2o1tisifggs2vg
2789 Michael Widenius 2010-01-04
Fixed bug in my_uuid() that caused failures on hpux and ia64
modified:
mysys/my_uuid.c
=== modified file 'mysys/my_uuid.c'
--- a/mysys/my_uuid.c 2009-02-01 12:02:29 +0000
+++ b/mysys/my_uuid.c 2010-01-04 18:31:26 +0000
@@ -108,7 +108,7 @@ void my_uuid_init(ulong seed1, ulong see
*/
/* 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 */
}