Fix all the bugs

- Mem leaks
- Stack corruption
- Div by 0
- Double frees
This commit is contained in:
Kostas Missos committed 2018-08-23 04:37:02 +03:00
1 parent 6a554eec6c
commit 382f727be3
8 files changed
+31 -16

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ int i2c_send_byte(u32 idx, u32 x, u32 y, u8 b)
u8 i2c_recv_byte(u32 idx, u32 x, u32 y)
{
u8 tmp;
u8 tmp = 0;
i2c_recv_buf_small(&tmp, 1, idx, x, y);
return tmp;
}