diff --git a/libemile/emile_second_set_output.c b/libemile/emile_second_set_output.c index fccb0b2..0efd1d1 100644 --- a/libemile/emile_second_set_output.c +++ b/libemile/emile_second_set_output.c @@ -37,7 +37,7 @@ int emile_second_set_output(int fd, unsigned int enable_mask, if (!EMILE_COMPAT(EMILE_03_SIGNATURE, read_long(&header.signature))) return EEMILE_INVALID_SECOND; - mask = read_long(header.console_mask); + mask = read_long(&header.console_mask); mask |= enable_mask; mask &= ~disable_mask; write_long(&header.console_mask, mask);