aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index b88d859..93f94a0 100644
--- a/text.c
+++ b/text.c
@@ -1630,7 +1630,7 @@ size_t text_bytes_get(const Text *txt, size_t pos, size_t len, char *buf) {
return len - rem;
}
-char *text_bytes_alloc0(Text *txt, size_t pos, size_t len) {
+char *text_bytes_alloc0(const Text *txt, size_t pos, size_t len) {
if (len == SIZE_MAX)
return NULL;
char *buf = malloc(len+1);