aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-09-30 10:35:14 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-10-10 10:03:17 +0200
commitd8d15d309e5468f6707d473129276b27173c078c (patch)
tree565310ca0896bd1b8196ca043f62a0148c0a532a /text.c
parentd5e7498e1c5098c0dd9a9630929d45ba2c37a47a (diff)
downloadvis-d8d15d309e5468f6707d473129276b27173c078c.tar.gz
vis-d8d15d309e5468f6707d473129276b27173c078c.tar.xz
text: mark text_bytes_alloc0 argument as const
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);