summaryrefslogtreecommitdiff
path: root/dahdi_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'dahdi_monitor.c')
-rw-r--r--dahdi_monitor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dahdi_monitor.c b/dahdi_monitor.c
index a328daa..3d7f14c 100644
--- a/dahdi_monitor.c
+++ b/dahdi_monitor.c
@@ -155,17 +155,17 @@ int pseudo_open(void)
void draw_barheader()
{
- char bar[barlen+5];
+ char bar[barlen + 4];
memset(bar, '-', sizeof(bar));
memset(bar, '<', 1);
- memset(bar+barlen+2, '>', 1);
- memset(bar+barlen+3, '\0', 1);
+ memset(bar + barlen + 2, '>', 1);
+ memset(bar + barlen + 3, '\0', 1);
- dahdi_copy_string(bar+(barlen/2), "(RX)", 4);
+ strncpy(bar + (barlen / 2), "(RX)", 4);
printf("%s", bar);
- dahdi_copy_string(bar+(barlen/2), "(TX)", 4);
+ strncpy(bar + (barlen / 2), "(TX)", 4);
printf(" %s\n", bar);
}