rtc: ds1307: use sizeof
Use sizeof where possible to ensure we don't read/write more than the
allocated buffer.
Signed-off-by:
Alexandre Belloni <alexandre.belloni@free-electrons.com>
Loading
Please register or sign in to comment
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Use sizeof where possible to ensure we don't read/write more than the
allocated buffer.
Signed-off-by:
Alexandre Belloni <alexandre.belloni@free-electrons.com>