diff --git a/src/rcfile.c b/src/rcfile.c index 7507f13eb6623fef28a0fa01500a06675faa0a75..58d8dff07fa5fb32193659594c8d98cc750d6c45 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -204,7 +204,7 @@ char *parse_next_regex(char *ptr) return NULL; } - /* Null terminate and advance ptr. */ + /* Null-terminate and advance ptr. */ *ptr++ = '\0'; while (isblank(*ptr)) diff --git a/src/utils.c b/src/utils.c index 6c16b9e4ab76697903846b40446e57fc9d2a87d7..1df715e7f638829d7cae29eb2b868a6cc109640d 100644 --- a/src/utils.c +++ b/src/utils.c @@ -232,7 +232,7 @@ ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream) *n += MAX_BUF_SIZE; } - /* Null terminate the buffer. */ + /* Null-terminate the buffer. */ null_at(lineptr, indx++); *n = indx; diff --git a/src/winio.c b/src/winio.c index 3b08b70242fa48ca450ee39040bd8dccc40a33d8..85961ff0988a38513f0567eb66f301d3d63ceb91 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1974,7 +1974,7 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool assert(alloc_len >= index + 1); - /* Null terminate converted. */ + /* Null-terminate converted. */ converted[index] = '\0'; /* Make sure converted takes up no more than len columns. */