From 890f4784c1483bbf9d4fbc83d9dd210b5b93d43e Mon Sep 17 00:00:00 2001 From: jpeeler Date: Fri, 15 Feb 2008 23:33:44 +0000 Subject: Fixes bug 11471. Replaced all 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.2@3833 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- jpah.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jpah.h') diff --git a/jpah.h b/jpah.h index f72c5fa..fb661ed 100644 --- a/jpah.h +++ b/jpah.h @@ -49,7 +49,7 @@ static void echo_can_init(void) static void echo_can_identify(char *buf, size_t len) { - strncpy(buf, "JP1", len); + zap_copy_string(buf, "JP1", len); } static void echo_can_shutdown(void) -- cgit v1.2.3