summaryrefslogtreecommitdiff
path: root/source/components/debugger
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2017-12-08 07:35:29 -0800
committerRobert Moore <Robert.Moore@intel.com>2017-12-08 07:35:29 -0800
commit64ad9c69a1bd534a466e060a33c0bbf5fc9e189c (patch)
tree8455965b5242aeba590cba896d693b11999b9f95 /source/components/debugger
parent8519ba376636565350c3fa0db5621c61d34c34b2 (diff)
downloadacpica-64ad9c69a1bd534a466e060a33c0bbf5fc9e189c.tar.gz
Create and deploy safe version of strncpy. No functional change
AcpiUtSafeStrncpy - copy and terminate string. Strncpy is not guaranteed to terminate the copied string if the input is longer than the length of the target.
Diffstat (limited to 'source/components/debugger')
-rw-r--r--source/components/debugger/dbfileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c
index 501d35878..00bb777ae 100644
--- a/source/components/debugger/dbfileio.c
+++ b/source/components/debugger/dbfileio.c
@@ -218,7 +218,7 @@ AcpiDbOpenDebugFile (
}
AcpiOsPrintf ("Debug output file %s opened\n", Name);
- strncpy (AcpiGbl_DbDebugFilename, Name,
+ AcpiUtSafeStrncpy (AcpiGbl_DbDebugFilename, Name,
sizeof (AcpiGbl_DbDebugFilename));
AcpiGbl_DbOutputToFile = TRUE;
}