summaryrefslogtreecommitdiff
path: root/source/components/utilities/uttrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/utilities/uttrack.c')
-rw-r--r--source/components/utilities/uttrack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/components/utilities/uttrack.c b/source/components/utilities/uttrack.c
index e74ff066a400b..a9b5e058c6639 100644
--- a/source/components/utilities/uttrack.c
+++ b/source/components/utilities/uttrack.c
@@ -557,8 +557,7 @@ AcpiUtTrackAllocation (
Allocation->Component = Component;
Allocation->Line = Line;
- strncpy (Allocation->Module, Module, ACPI_MAX_MODULE_NAME);
- Allocation->Module[ACPI_MAX_MODULE_NAME-1] = 0;
+ AcpiUtSafeStrncpy (Allocation->Module, (char *) Module, ACPI_MAX_MODULE_NAME);
if (!Element)
{