summaryrefslogtreecommitdiff
path: root/drivers/misc/tegra-profiler/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/tegra-profiler/auth.c')
-rw-r--r--drivers/misc/tegra-profiler/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/tegra-profiler/auth.c b/drivers/misc/tegra-profiler/auth.c
index 7a89ba57f33e..51141ad5fac0 100644
--- a/drivers/misc/tegra-profiler/auth.c
+++ b/drivers/misc/tegra-profiler/auth.c
@@ -256,7 +256,7 @@ int quadd_auth_is_debuggable(const char *package_name)
data->debug_app_uid = 0;
data->response_value = 0;
- strncpy(data->package_name, package_name, QUADD_MAX_PACKAGE_NAME);
+ strlcpy(data->package_name, package_name, sizeof(data->package_name));
mutex_unlock(&auth_ctx.lock);
request_ready();