Skip to content
Commit 3bc8117d authored by UtsavBalar1231's avatar UtsavBalar1231 Committed by Kader Bava
Browse files

coresight: tmc: Fix fortify-source warning



/drivers/hwtracing/coresight/coresight-tmc.c:423:26: error: 'sscanf' may overflow; destination buffer in argument 3 has size 10, but the corresponding specifier may require size 11 [-Werror,-Wfortify-source]
        if (sscanf(buf, "%10s", str) != 1)
                                ^
/drivers/hwtracing/coresight/coresight-tmc.c:464:26: error: 'sscanf' may overflow; destination buffer in argument 3 has size 10, but the corresponding specifier may require size 11 [-Werror,-Wfortify-source]
        if (sscanf(buf, "%10s", str) != 1)
                                ^

Change-Id: Ie3b6a6b83072185b3cd15949691efc79abf0400c
Signed-off-by: default avatarUtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: default avatarCykeek <Cykeek@proton.me>
Signed-off-by: default avatarimprobir <ghosh_probir@yahoo.com>
parent 71ef153f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment