- correct copying length of strncat()
Change-Id: I3b6d68732397aee8070be475cbdb47ec13086ef2
Signed-off-by: sinikang <sinikang@samsung.com>
Name: tel-plugin-dongleinterface
Summary: Dongle Interface plugin for CP interface
-Version: 0.2.25
+Version: 0.2.26
Release: 1
Group: Development/Libraries
License: Apache-2.0
snprintf(buf, 255, "%s%04X: ", pad, 0);
for (i = 0; i < size; i++) {
snprintf(hex, 4, "%02X ", p[i]);
- strncat(buf, hex, strlen(hex));
+ strncat(buf, hex, sizeof(buf) - strlen(buf) - 1);
if ((i + 1) % 8 == 0) {
if ((i + 1) % 16 == 0) {