← Back to team overview

maria-developers team mailing list archive

[Branch ~maria-captains/maria/5.1] Rev 2789: Fixed bug in my_uuid() that caused failures on hpux and ia64

 

------------------------------------------------------------
revno: 2789
committer: Michael Widenius <monty@xxxxxxxxxxxx>
branch nick: maria-5.1
timestamp: Mon 2010-01-04 20:31:26 +0200
message:
  Fixed bug in my_uuid() that caused failures on hpux and ia64 
modified:
  mysys/my_uuid.c


--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1

Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'mysys/my_uuid.c'
--- mysys/my_uuid.c	2009-02-01 12:02:29 +0000
+++ mysys/my_uuid.c	2010-01-04 18:31:26 +0000
@@ -108,7 +108,7 @@
     */
     /* 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 */
   }