Buffer not null terminated CID 1094354

llvm-svn: 215976
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index b1e39ff..0d7dda1 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -221,6 +221,7 @@
     if (!uuid_string.empty())
     {
         strncpy (uuid_string_buffer, uuid_string.c_str(), sizeof (uuid_string_buffer));
+        uuid_string_buffer[sizeof (uuid_string_buffer) - 1] = '\0';
         uuid_c_string = uuid_string_buffer;
     }