From: Niki Roo Date: Sat, 8 Apr 2023 12:12:44 +0000 (+0200) Subject: cstring: improve X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=9b8888e1b5253032b61fd09bb983d101920b7186;p=nsub.git cstring: improve --- diff --git a/src/utils/cstring.c b/src/utils/cstring.c index 6dcdeba..07215e7 100644 --- a/src/utils/cstring.c +++ b/src/utils/cstring.c @@ -617,8 +617,8 @@ void cstring_change_case(cstring_t *self, int up) { free_cstring(rep); } +static char buffer[BUFFER_SIZE]; int cstring_readline(cstring_t *self, FILE *file) { - char buffer[BUFFER_SIZE]; size_t size = 0; int full_line;