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: UtsavBalar1231 <utsavbalar1231@gmail.com> Signed-off-by: Cykeek <Cykeek@proton.me> Signed-off-by: improbir <ghosh_probir@yahoo.com>
Loading
Please register or sign in to comment