diff --git a/src/browser.c b/src/browser.c index 5ca75035..2d5cfac3 100644 --- a/src/browser.c +++ b/src/browser.c @@ -572,8 +572,7 @@ char *browse(char *path) /* If the given path is relative, join it with the current path. */ if (*path != '/') { - path = nrealloc(path, strlen(present_path) + - strlen(answer) + 1); + path = nrealloc(path, strlen(present_path) + strlen(answer) + 1); sprintf(path, "%s%s", present_path, answer); } diff --git a/src/files.c b/src/files.c index fc30ad6f..76891c02 100644 --- a/src/files.c +++ b/src/files.c @@ -2547,9 +2547,7 @@ char **filename_completion(const char *morsel, size_t *num_matches) if (strncmp(entry->d_name, filename, filenamelen) == 0 && strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0) { - fullname = nrealloc(fullname, strlen(dirname) + - strlen(entry->d_name) + 1); - + fullname = nrealloc(fullname, strlen(dirname) + strlen(entry->d_name) + 1); sprintf(fullname, "%s%s", dirname, entry->d_name); #ifdef ENABLE_OPERATINGDIR diff --git a/src/text.c b/src/text.c index 19e85567..fe3d966b 100644 --- a/src/text.c +++ b/src/text.c @@ -1588,8 +1588,7 @@ void concat_paragraph(linestruct *line, size_t count) line->data[line_len] = '\0'; } - line->data = nrealloc(line->data, - line_len + next_line_len - next_lead_len + 1); + line->data = nrealloc(line->data, line_len + next_line_len - next_lead_len + 1); strcat(line->data, next_line->data + next_lead_len); #ifndef NANO_TINY line->has_anchor |= next_line->has_anchor;