2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00
This commit is contained in:
Mark Andrews 2016-06-17 07:13:12 +10:00
parent 4c3be616f9
commit caf7c2fd25

View File

@ -33,7 +33,10 @@ check(const char *buf, ssize_t count, size_t *start) {
const char chars[] = "abcdefghijklmnopqrstuvwxyz0123456789";
ssize_t i;
for (i = 0; i < count; i++, *start = (*start + 1) % (sizeof(chars) - 1)) {
for (i = 0;
i < count;
i++, *start = (*start + 1) % (sizeof(chars) - 1))
{
/* Just ignore the trailing newline */
if (buf[i] == '\n')
continue;