From mboxrd@z Thu Jan 1 00:00:00 1970 From: plenz at cis.fu-berlin.de (Julius Plenz) Date: Tue, 30 Oct 2012 18:52:38 +0100 Subject: [PATCH 2/2] bugfix: make ss-diff correctly handle tab expansion In-Reply-To: References: <1351601762-953642-1-git-send-email-plenz@cis.fu-berlin.de> <1351601762-953642-3-git-send-email-plenz@cis.fu-berlin.de> <20121030145653.GB378591@plenz.com> <20121030171257.GC378591@plenz.com> Message-ID: <20121030175238.GD378591@plenz.com> Hi, Jason! * Jason A. Donenfeld [2012-10-30 18:28]: > > len % 8 == 0 ? 8 : (8 - len % 8) > if len % 8 == 0, > 8 > so the original formula holds You are right. If 0 <= n < 8, then 8 - n is between 1 and 8, which is what we want. If I see correctly, we can just drop the line that strcat's the one space and thus repair the error? Julius P.S.: I'm a mathematician, you see, I have troubles with numbers bigger than two. They are so confusing. ;-)