summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/tools/debugserver/source/DNBRegisterInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/debugserver/source/DNBRegisterInfo.cpp b/lldb/tools/debugserver/source/DNBRegisterInfo.cpp
index a8f09bc8784..c46dec0bbbf 100644
--- a/lldb/tools/debugserver/source/DNBRegisterInfo.cpp
+++ b/lldb/tools/debugserver/source/DNBRegisterInfo.cpp
@@ -119,7 +119,7 @@ DNBRegisterValueClass::Dump(const char *pre, const char *post) const
if (pos < end)
pos += snprintf(pos, end - pos, "%d", (int32_t)value.v_sint8[i]);
}
- strncat(str, " }", sizeof(str));
+ strlcat(str, " }", sizeof(str));
break;
default:
@@ -201,7 +201,7 @@ DNBRegisterValueClass::Dump(const char *pre, const char *post) const
}
break;
}
- strncat(str, " }", sizeof(str));
+ strlcat(str, " }", sizeof(str));
}
else
{
OpenPOWER on IntegriCloud