aboutsummaryrefslogtreecommitdiff
path: root/lib/io/src/unix
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-04 21:41:32 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-05 09:46:05 +0200
commit9a20f40bb5e7106f3fa59affbbb81f30337ada6b (patch)
treea6648c6477caa3ff162fa06c322c641a6258dd1e /lib/io/src/unix
parent8e86f894afe775e39b8d02c95dd55f97a3465d27 (diff)
libio: istream_get_line: fix trailing CR sanitation
The istream_get_line function is supposed to remove the line break, inclduing CR+LF if used. The previous implementation simply checked the buffer when the LF was found, missing the case where the CR was alraedy added and the LF is at the beginning of the newly loaded data. This commit modifies the check to inspect the line itself when it was found, and remove the CR after the fact. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/src/unix')
0 files changed, 0 insertions, 0 deletions