cstring: improve
authorNiki Roo <niki@nikiroo.be>
Sat, 8 Apr 2023 12:12:44 +0000 (14:12 +0200)
committerNiki Roo <niki@nikiroo.be>
Sat, 8 Apr 2023 12:12:44 +0000 (14:12 +0200)
src/utils/cstring.c

index 6dcdeba3314aa000e6d4fdfd6970da78e987a5e5..07215e73552e0c0a7e6d2c11f9f2e144e5eedf0f 100644 (file)
@@ -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;