Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c6355a75 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian Committed by Stephen Boyd
Browse files

msm: pm-stats: Fix bug in computing size of a string



Use strlen and strcmp instead of sizeof and memcmp to compare strings.
procfs includes the newline character as a part of the buffer. When
using sizeof and memcmp, the newline character is used in the comparison
resulting in unequal bufferes.

Change-Id: Iafce2543596708e28757805cecae1ccec083c691
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent baa2cc86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment