From 23a324c0a98aba6d1bd13718d0d49d503c5987e0 Mon Sep 17 00:00:00 2001 From: jpeeler Date: Mon, 18 Feb 2008 17:32:26 +0000 Subject: 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 --- ztmonitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ztmonitor.c') diff --git a/ztmonitor.c b/ztmonitor.c index 13f355d..29fc721 100644 --- a/ztmonitor.c +++ b/ztmonitor.c @@ -165,10 +165,10 @@ void draw_barheader() memset(bar+barlen+2, '>', 1); memset(bar+barlen+3, '\0', 1); - strncpy(bar+(barlen/2), "(RX)", 4); + zap_copy_string(bar+(barlen/2), "(RX)", 4); printf("%s", bar); - strncpy(bar+(barlen/2), "(TX)", 4); + zap_copy_string(bar+(barlen/2), "(TX)", 4); printf(" %s\n", bar); } -- cgit v1.2.3