src/share/vm/oops/symbol.cpp

changeset 4851
8c03fc47511d
parent 4675
63e54c37ac64
child 5208
a1ebd310d5c1
     1.1 --- a/src/share/vm/oops/symbol.cpp	Thu Mar 28 15:39:52 2013 +0100
     1.2 +++ b/src/share/vm/oops/symbol.cpp	Mon Apr 01 14:05:41 2013 -0700
     1.3 @@ -162,7 +162,7 @@
     1.4    const char *ptr = (const char *)&_body[0];
     1.5    int quoted_length = UTF8::quoted_ascii_length(ptr, utf8_length());
     1.6    char* result = NEW_RESOURCE_ARRAY(char, quoted_length + 1);
     1.7 -  UTF8::as_quoted_ascii(ptr, result, quoted_length + 1);
     1.8 +  UTF8::as_quoted_ascii(ptr, utf8_length(), result, quoted_length + 1);
     1.9    return result;
    1.10  }
    1.11  

mercurial