summaryrefslogtreecommitdiff
path: root/kernel/hpec
diff options
context:
space:
mode:
authorjpeeler <jpeeler@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-18 17:32:26 +0000
committerjpeeler <jpeeler@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-02-18 17:32:26 +0000
commit23a324c0a98aba6d1bd13718d0d49d503c5987e0 (patch)
tree726099eee04498d137f1d9a3da25c8bd6067a10f /kernel/hpec
parent517b95c8dd353100be49168eee07fc8966db23c2 (diff)
Closes issue #11471. Replaced instances of strncpy with zap_copy_string (added to zaptel.h) to fix any off by one errors and ensure destination string is NULL terminated.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3846 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/hpec')
-rw-r--r--kernel/hpec/hpec_zaptel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/hpec/hpec_zaptel.h b/kernel/hpec/hpec_zaptel.h
index 2fb5a14..2f90571 100644
--- a/kernel/hpec/hpec_zaptel.h
+++ b/kernel/hpec/hpec_zaptel.h
@@ -67,7 +67,7 @@ static void echo_can_init(void)
static void echo_can_identify(char *buf, size_t len)
{
- strncpy(buf, "HPEC", len);
+ zap_copy_string(buf, "HPEC", len);
}
static void echo_can_shutdown(void)