From 330741b650e7482c721eeb34ca9d4d94bad948aa Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Fri, 17 Feb 2017 19:59:34 +0100 Subject: [PATCH] tweaks: adjust two comments, to be more accurate --- src/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/files.c b/src/files.c index cde2a995..655408db 100644 --- a/src/files.c +++ b/src/files.c @@ -738,12 +738,12 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable, /* The number of lines in the file. */ size_t len = 0; /* The length of the current line of the file. */ - size_t bufx = MAX_BUF_SIZE; - /* The size of each chunk of the file that we read. */ char input = '\0'; /* The current input character. */ char *buf; - /* The buffer where we store chunks of the file. */ + /* The buffer in which we assemble each line of the file. */ + size_t bufx = MAX_BUF_SIZE; + /* The allocated size of the line buffer; increased as needed. */ filestruct *fileptr = openfile->current->prev; /* The line after which to start inserting. */ int input_int; -- GitLab