aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-05-03 09:34:55 +0100
committerRon Yorston <rmy@pobox.com>2019-05-03 09:34:55 +0100
commit03a7b173605a890e1db5177ecd5b8dd591081c41 (patch)
tree9b50ae94762cf0ebd07cd96a5705c718156dd54d /editors/vi.c
parentee3d2805065f09b3d5d28e3518f1351b5d1c0bf7 (diff)
downloadbusybox-w32-03a7b173605a890e1db5177ecd5b8dd591081c41.tar.gz
busybox-w32-03a7b173605a890e1db5177ecd5b8dd591081c41.tar.bz2
busybox-w32-03a7b173605a890e1db5177ecd5b8dd591081c41.zip
win32: trim leading and trailing spaces from shebang options
Commit 97e2c4a05 (win32: changes to treatment of scripts) attempted to use strtok(3) to simplify the parsing of shebang lines. Unfortunately it resulted in leading and trailing whitespace being left in the option string. Fix this by trimming the options before they're returned. Reported-by: Niklas DAHLQUIST <niklas.dahlquist@st.com> Signed-off-by: Ron Yorston <rmy@pobox.com>
Diffstat (limited to 'editors/vi.c')
0 files changed, 0 insertions, 0 deletions