diff --git a/src/share/back/debugInit.c b/src/share/back/debugInit.c index 3475397e0ffbdf215300ab5733eeb5e0c2faa02c..536bc7a999dee8b66108295d7003f584d55a43e2 100644 --- a/src/share/back/debugInit.c +++ b/src/share/back/debugInit.c @@ -1,5 +1,5 @@ /* - * 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);