8304685: Fix whitespace parsing in libjdwp
Reviewed-by: cjplummer, amenkov, sspitsyn
This commit is contained in:
parent
241455fcd1
commit
939344b843
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2023, 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
|
||||
@ -85,10 +85,10 @@ dbgsysExec(char *cmdLine)
|
||||
}
|
||||
|
||||
for (i = 0, p = args; i < argc; i++) {
|
||||
p = skipWhitespace(p); // no-op on first iteration
|
||||
argv[i] = p;
|
||||
p = skipNonWhitespace(p);
|
||||
*p++ = '\0';
|
||||
p = skipWhitespace(p);
|
||||
}
|
||||
argv[i] = NULL; /* NULL terminate */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user