commit 94addea5baef3eaf816afe0ff3cbb76829b54cff
parent 0a837049777f429415155fc1fd306bfbacb55f11
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 18 Oct 2018 15:31:47 +0200
Make buffers const in the ansilove_ctx and ansilove_png structures
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/ansilove.h b/include/ansilove.h
@@ -55,12 +55,12 @@
#define ANSILOVE_MODE_WORKBENCH 3
struct ansilove_png {
- unsigned char *buffer;
+ const unsigned char *buffer;
int length;
};
struct ansilove_ctx {
- unsigned char *buffer;
+ const unsigned char *buffer;
size_t length;
struct ansilove_png png;
int error;