From ab1a5c7abb4e0c6206715af58244febd4bdc3e6e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 15 Apr 2020 17:50:59 +0200 Subject: [PATCH] tweaks: rename two parameters, away from abbreviations --- src/files.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/files.c b/src/files.c index 0917ecd8..8bbbcbaa 100644 --- 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