sound: Fix string length in strncmp() 15/316015/2 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20241210.162006
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 9 Dec 2024 08:22:07 +0000 (17:22 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 9 Dec 2024 10:55:53 +0000 (19:55 +0900)
commitd4726719985dad465805bf25af9d9419a905dcd0
tree28bab8828855ca489c6ad42c86d250532b8022d6
parent2f4ca4f1a5a0a36d33c8f2d56aff48ce9796fe1a
sound: Fix string length in strncmp()

To compare include null character, the length should be
strlen() + 1 of literal string.
however strlen() + 1 logic was omitted.

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