commit | 6f185d30228e8c982bb91ff62ce45c5776f197db | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Sun Apr 17 13:02:04 2016 +0200 |
committer | Benno Schulenberg <bensberg@justemail.net> | Sun Apr 17 13:02:04 2016 +0200 |
tree | 29875fb688a03af928bb42940ac116faab19971e | |
parent | c5b8f52c071e8a94f6a1db480c95dad0a415847a [diff] |
inserting: strip a carriage return before copying the line Also, store the input character earlier, so we don't have to use len - 1. Furthermore, len increments in steps of 1, so it cannot pass the value of bufx unnoticed, so use a comparison for equality.