hotspot/src/share/vm/oops/symbol.cpp
changeset 16602 5df51d3bc550
parent 15855 2ac9ebea17f3
child 17858 c292f8791cca
--- a/hotspot/src/share/vm/oops/symbol.cpp	Thu Mar 28 15:39:52 2013 +0100
+++ b/hotspot/src/share/vm/oops/symbol.cpp	Mon Apr 01 14:05:41 2013 -0700
@@ -162,7 +162,7 @@
   const char *ptr = (const char *)&_body[0];
   int quoted_length = UTF8::quoted_ascii_length(ptr, utf8_length());
   char* result = NEW_RESOURCE_ARRAY(char, quoted_length + 1);
-  UTF8::as_quoted_ascii(ptr, result, quoted_length + 1);
+  UTF8::as_quoted_ascii(ptr, utf8_length(), result, quoted_length + 1);
   return result;
 }