提交 03461177 编写于 作者: S sgehwolf

8214061: Buffer written into itself

Summary: Actually write the msg text into the buffer.
Reviewed-by: dcubed, sgehwolf, sspitsyn
Contributed-by: NSimon Tooke <stooke@redhat.com>
上级 4c05e317
/*
* Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -665,7 +665,7 @@ jniFatalError(JNIEnv *env, const char *msg, jvmtiError error, int exit_code)
(void)snprintf(buf, sizeof(buf), "JDWP %s, jvmtiError=%s(%d)",
msg, jvmtiErrorText(error), error);
} else {
(void)snprintf(buf, sizeof(buf), "JDWP %s", buf);
(void)snprintf(buf, sizeof(buf), "JDWP %s", msg);
}
if (env != NULL) {
(*((*env)->FatalError))(env, buf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册