Skip to content
Snippets Groups Projects
Commit efd7c117 authored by stepan's avatar stepan
Browse files

Fix managed RFFI implementation of mkdtemp

parent 6516e6d4
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ public final class Managed_DownCallNodeFactory extends DownCallNodeFactory {
@TruffleBoundary
public Object execute(VirtualFrame frame) {
NativeCharArray templateBytes = (NativeCharArray) ForeignAccess.getArguments(frame).get(0);
String template = new String(templateBytes.getValue(), 0, templateBytes.getValue().length - 1);
String template = templateBytes.getString();
if (!template.endsWith("XXXXXX")) {
throw new IllegalArgumentException("template must end with XXXXXX");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment