]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: redefine CW_CMDLINE to CW_CMDLINE_ALLOC
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 30 Jan 2024 19:46:09 +0000 (20:46 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 31 Jan 2024 19:11:58 +0000 (20:11 +0100)
commit732afede935832beab181ae421c1366df2ae6af5
tree157c04b438e63453d7f5060af0be3eeb3af73663
parentb1d64ac265f01f2efcff495b963982ca741269d9
Cygwin: redefine CW_CMDLINE to CW_CMDLINE_ALLOC

Make sure to

- append a trailing \0 as with Windows multistrings, so the end of
  the string can be recognized by the caller, and

- allocate cmdline on the user heap so the caller can free the
  multistring after usage.

Fixes: 831d6fa520ed4 ("* external.cc (cygwin_internal): Implement CW_CMDLINE.")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/external.cc
winsup/cygwin/include/sys/cygwin.h
This page took 0.031138 seconds and 5 git commands to generate.