mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 04:03:16 +02:00
When zeroing memory, use type independent code
Reduces the potential for bugs
This commit is contained in:
@@ -11,7 +11,7 @@ static inline void parse_graphics_code(Screen *screen,
|
||||
unsigned int i, code;
|
||||
uint64_t lcode;
|
||||
bool is_negative;
|
||||
memset(&g, 0, sizeof(g));
|
||||
zero_at_ptr(&g);
|
||||
size_t sz;
|
||||
static uint8_t payload[4096];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user