diff options
Diffstat (limited to 'src/encpipe.c')
| -rw-r--r-- | src/encpipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encpipe.c b/src/encpipe.c index 00e1148..032d1d6 100644 --- a/src/encpipe.c +++ b/src/encpipe.c @@ -240,7 +240,7 @@ main(int argc, char *argv[]) } else if (ctx.sizeof_buf > MAX_BUFFER_SIZE) { ctx.sizeof_buf = MAX_BUFFER_SIZE; } - if ((ctx.buf = malloc(ctx.sizeof_buf)) == NULL) { + if ((ctx.buf = (unsigned char *) malloc(ctx.sizeof_buf)) == NULL) { die(1, "malloc()"); } assert(sizeof HYDRO_CONTEXT == hydro_secretbox_CONTEXTBYTES); |