]> Kevux Git Server - fll/commit
Bugfix: when --line is used, lengths passed buffer size aren't handled.
authorKevin Day <thekevinday@gmail.com>
Sat, 27 Jun 2020 23:17:45 +0000 (18:17 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 27 Jun 2020 23:17:45 +0000 (18:17 -0500)
commitfce926420ea546e25c414c95d7dd55c32c346080
tree593e3f02075152a48925caba7f5138c50a205444
parent6602d2a1e81b72ce3947ea91bdbea0c741cc685d
Bugfix: when --line is used, lengths passed buffer size aren't handled.

data->line is not a position, do not use it as a position (if (data->line < data->buffer.used) { is doing this).

If the line is exceeds the buffer, return f_data_not and properly handle that return case.
For --total, this means print 0.
For just about everything else, print nothing.
level_3/iki_read/c/private-iki_read.c
level_3/iki_read/c/private-iki_read.h