battery: Modify the length of strncmp parameter 68/314568/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x tizen accepted/tizen/unified/20240716.112416 accepted/tizen/unified/20240716.140259 accepted/tizen/unified/dev/20240717.110309 accepted/tizen/unified/x/20240717.012438
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 15 Jul 2024 11:34:58 +0000 (20:34 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 15 Jul 2024 11:34:58 +0000 (20:34 +0900)
commit91add36e0cab7f08806d250b55c012db90b5d5be
tree30d3a867b56ffc4b91fa8866045b31d7d45234b4
parent0f653b51e29c6b550036761cfc30710b11dd757a
battery: Modify the length of strncmp parameter

When comparing two strings, it is not clear what values are contained in the case where they are obtained from an array.
Thus, using sizeof literal is more clear in terms of readability and maintenance.
This is meaningful especially when the array does not contain proper values or is empty.

Change-Id: Id1f24665910e4f754e7c77d89ecd036839309add
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/battery.c