Skip to content

Commit 939344b

Browse files
committed
8304685: Fix whitespace parsing in libjdwp
Reviewed-by: cjplummer, amenkov, sspitsyn
1 parent 241455f commit 939344b

File tree

1 file changed

+2
-2
lines changed
  • src/jdk.jdwp.agent/unix/native/libjdwp

1 file changed

+2
-2
lines changed

src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -85,10 +85,10 @@ dbgsysExec(char *cmdLine)
8585
}
8686

8787
for (i = 0, p = args; i < argc; i++) {
88+
p = skipWhitespace(p); // no-op on first iteration
8889
argv[i] = p;
8990
p = skipNonWhitespace(p);
9091
*p++ = '\0';
91-
p = skipWhitespace(p);
9292
}
9393
argv[i] = NULL; /* NULL terminate */
9494

0 commit comments

Comments
 (0)