Author :
Peter Hutterer
Date :
2024-07-16 10:19:55
Hash :4b5d1027 Message :compose: fix a sizeof char* vs char warning
../../../src/compose/dump.h:48:16: warning: Result of 'calloc' is
converted to a pointer of type 'char', which is incompatible with
sizeof operand type 'char *' [unix.MallocSizeof]
48 | char* to = calloc(4 * length + 1, sizeof(to));
| ~~~~~ ^~~~~~ ~~~~~~~~~~
No security impact as sizeof(char*) is always >1 so we were just overallocating
here.