mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8336289: Obliterate most references to _snprintf in the Windows JDK
Reviewed-by: kbarrett, dholmes, jpai, mullan, djelinski, prr
This commit is contained in:
parent
78f53efcd6
commit
cd9e241f0e
12 changed files with 54 additions and 70 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2024, 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
|
||||
|
@ -328,7 +328,7 @@ public:
|
|||
printf("*** cannot allocate memory\n");
|
||||
doabort();
|
||||
}
|
||||
_snprintf(cptr, MAX_PATH, "\"%s\" %s", argv[0], cmdline);
|
||||
snprintf(cptr, MAX_PATH, "\"%s\" %s", argv[0], cmdline);
|
||||
JLI_CmdToArgs(cptr);
|
||||
free(cptr);
|
||||
StdArg *kargv = JLI_GetStdArgs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue