mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-30 04:43:27 +00:00
8214061: Buffer written into itself
Actually write the msg text into the buffer. Reviewed-by: dcubed, sgehwolf, sspitsyn
This commit is contained in:
parent
02688398e1
commit
2dd1c19b64
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, 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
|
||||
@ -647,7 +647,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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user