From 44e64da977892a7eaa39035f3b1127e77671bdca Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Sun, 22 Dec 2013 17:09:02 +0100 Subject: [PATCH] use strncpy --- src/hdapsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdapsd.c b/src/hdapsd.c index 2809bf2..3a0792d 100644 --- a/src/hdapsd.c +++ b/src/hdapsd.c @@ -517,7 +517,7 @@ int analyze (int x, int y, double unow, double base_threshold, threshold *= PARKED_THRESH_FACTOR; /* Threshold test (uses Pythagoras's theorem) */ - strcpy(reason, " "); + strncpy(reason, " ", 3); check_thresh(veloc_sqr, threshold*VELOC_ADJUST, &above, &near, reason+0, 'V'); -- 2.11.4.GIT