git://git.nikiroo.be
/
nsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30a68f
)
cstring: improve
author
Niki Roo
<niki@nikiroo.be>
Sat, 8 Apr 2023 12:12:44 +0000
(14:12 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Sat, 8 Apr 2023 12:12:44 +0000
(14:12 +0200)
src/utils/cstring.c
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/cstring.c
b/src/utils/cstring.c
index 6dcdeba3314aa000e6d4fdfd6970da78e987a5e5..07215e73552e0c0a7e6d2c11f9f2e144e5eedf0f 100644
(file)
--- 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;