remove carriage returns in lines (pw-inspector)

This commit is contained in:
van Hauser 2020-02-17 09:44:26 +01:00
parent 720bdb3f96
commit 0b093e67c4

View file

@ -130,6 +130,8 @@ int main(int argc, char *argv[]) {
continue;
if (buf[strlen(buf) - 1] == '\n')
buf[strlen(buf) - 1] = 0;
if (buf[strlen(buf) - 1] == '\r')
buf[strlen(buf) - 1] = 0;
if (strlen(buf) >= minlen && strlen(buf) <= maxlen) {
i = 0;
if (countsets > 0) {