OSSP CVS Repository

ossp - Check-in [5149]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5149
Date: 2005-Sep-01 22:50:18 (local)
2005-Sep-01 20:50:18 (UTC)
User:rse
Branch:
Comment: fix uuid_clone() function
Tickets:
Inspections:
Files:
ossp-pkg/uuid/uuid.c      1.54 -> 1.55     1 inserted, 1 deleted

ossp-pkg/uuid/uuid.c 1.54 -> 1.55

--- uuid.c       2005/08/31 19:21:13     1.54
+++ uuid.c       2005/09/01 20:50:18     1.55
@@ -162,7 +162,7 @@
         return UUID_RC_MEM;
 
     /* clone entire internal state */
-    memcpy(obj, uuid, sizeof(uuid));
+    memcpy(obj, uuid, sizeof(uuid_t));
 
     /* re-initialize with new PRNG, MD5 and SHA1 sub-objects */
     if (prng_create(&obj->prng) != PRNG_RC_OK)

CVSTrac 2.0.1