nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit ab1a5c7abb4e0c6206715af58244febd4bdc3e6e
parent 079a679431ad2c92c9fde9961928f9f8d4a9c7f8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 15 Apr 2020 17:50:59 +0200

tweaks: rename two parameters, away from abbreviations

Diffstat:
Msrc/files.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -605,14 +605,14 @@ void close_buffer(void) } #endif /* ENABLE_MULTIBUFFER */ -/* Encode any NUL bytes in the given line of text, which is of length buf_len, +/* Encode any NUL bytes in the given line of text (of the given length), * and return a dynamically allocated copy of the resultant string. */ -char *encode_data(char *buf, size_t buf_len) +char *encode_data(char *text, size_t length) { - recode_NUL_to_LF(buf, buf_len); - buf[buf_len] = '\0'; + recode_NUL_to_LF(text, length); + text[length] = '\0'; - return copy_of(buf); + return copy_of(text); } /* Read the given open file f into the current buffer. filename should be