diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-09-30 10:35:14 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-10 10:03:17 +0200 |
| commit | d8d15d309e5468f6707d473129276b27173c078c (patch) | |
| tree | 565310ca0896bd1b8196ca043f62a0148c0a532a /text.c | |
| parent | d5e7498e1c5098c0dd9a9630929d45ba2c37a47a (diff) | |
| download | vis-d8d15d309e5468f6707d473129276b27173c078c.tar.gz vis-d8d15d309e5468f6707d473129276b27173c078c.tar.xz | |
text: mark text_bytes_alloc0 argument as const
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
