The pointer manipulation in modutil_count_statements assumed that if a semicolon is found, it is not the last character in the buffer. It also assumed that the buffer contained at least one readable character.
The pointer manipulation in modutil_count_statements assumed that if a semicolon is found, it is not the last character in the buffer. It also assumed that the buffer contained at least one readable character.