aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2024-01-31 13:30:05 +0100
committerCorinna Vinschen <corinna@vinschen.de>2024-01-31 20:11:58 +0100
commitbded8091c438d18e1d259864d773891a747c7576 (patch)
tree210791012c8b12db93ab3793e6d66e9b2065e614 /winsup/cygwin/dcrt0.cc
parent1ce9756ee61e8dff5e3319851e14ebf310a0bdd8 (diff)
downloadnewlib-bded8091c438d18e1d259864d773891a747c7576.zip
newlib-bded8091c438d18e1d259864d773891a747c7576.tar.gz
newlib-bded8091c438d18e1d259864d773891a747c7576.tar.bz2
Cygwin: cygwin_GetCommandLineW/A: don't rely on __argv[0] content
Since it's possible to change the __argv array, we should not rely on __argv[0] actually representing the windows executable path in any way. Use the real path stored in global_progname instead. Fixes: 521953a83a885 ("* common.din: Export GetCommandLine{A,W}.") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
0 files changed, 0 insertions, 0 deletions