diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-07-08 06:58:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-07-08 06:58:37 -0700 |
commit | eec582cdb351530131d2ae30376eca2771f78e49 (patch) | |
tree | fbd791cf3f0ff9b9f1f38649f21ff4ed69877904 /winsup/cygwin/include | |
parent | 8da90498684e5dc90870601dc520d8597e09788d (diff) | |
download | cygnal-eec582cdb351530131d2ae30376eca2771f78e49.tar.gz cygnal-eec582cdb351530131d2ae30376eca2771f78e49.tar.bz2 cygnal-eec582cdb351530131d2ae30376eca2771f78e49.zip |
Small fixes in get_cmd_exe_path.
* winsup/cygwin/spawn.cc (init_cmd_exe_path): Restructure code
to initialize rather than assign nchars. Include backslash in
cmd.exe name; then it can be omitted from the size calculation
and sprintf. Do not allocate an excess byte for the string.
Thanks to user forsvarir of the code review stackechange.
Also reformatted to the GNU style used inside Cygwin.
(init_cmd_exe_path): Remove spurious whitespace.
Diffstat (limited to 'winsup/cygwin/include')
0 files changed, 0 insertions, 0 deletions