aboutsummaryrefslogtreecommitdiff
path: root/cut.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 23:24:00 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 23:24:00 +0000
commit28611675ac2c9073639562f4e4477f8e81d01845 (patch)
treec770d2ac4df0293c245dc246f93abf500545d865 /cut.c
parent3836d9ff5dbc4daec768cb3f8d8c1142bd198fd1 (diff)
downloadbusybox-w32-28611675ac2c9073639562f4e4477f8e81d01845.tar.gz
busybox-w32-28611675ac2c9073639562f4e4477f8e81d01845.tar.bz2
busybox-w32-28611675ac2c9073639562f4e4477f8e81d01845.zip
Fixed a couple of buglets:
- add_cmd_str: segv's were being generated if there was a '# comment' line (and probably other kinds of lines, too) that was not followed by a semi-colon or whitespace - parse_edit_cmd: was returning a wrong number (too low) for the index; it was not accounting for backslashes eaten, for the fact that we start at the 3rd index in the string, or for the fact that we add an extra newline. - parse_cmd_str: was returning a wrong number (again, too low) for the index in the case of single-letter commands (p,d). There was some over-compensation for this in the 'return' stmt at the end which also needed some help. - load_cmd_file: was not eating trailing newlines off the line read from the command file. This had the deleterious effect of printing an extra newlines after text displayed from edit (i,a,c) commands. git-svn-id: svn://busybox.net/trunk/busybox@862 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'cut.c')
0 files changed, 0 insertions, 0 deletions