aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/uuid.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/uuid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp
index db758d0..22517d7 100644
--- a/src/unstable/uuid.cpp
+++ b/src/unstable/uuid.cpp
@@ -104,7 +104,8 @@ Bu::Uuid Bu::Uuid::generate( Bu::Uuid::Type eType )
104 case System: 104 case System:
105#if defined(linux) 105#if defined(linux)
106 Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read ); 106 Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read );
107 char dat[36]; 107 char dat[37];
108 memset( dat, 0, 37 );
108 fIn.read( dat, 36 ); 109 fIn.read( dat, 36 );
109 id.set( dat ); 110 id.set( dat );
110#elif defined(WIN32) 111#elif defined(WIN32)