Index: lib/Bitcode/Reader/Deserialize.cpp
===================================================================
--- lib/Bitcode/Reader/Deserialize.cpp	(revision 47480)
+++ lib/Bitcode/Reader/Deserialize.cpp	(working copy)
@@ -324,7 +324,7 @@
     cstr[i] = (char) ReadInt();
   
   if (isNullTerm)
-    cstr[len+1] = '\0';
+    cstr[len] = '\0';
   
   return cstr;
 }
