From: David van Moolenbroek Date: Fri, 27 Jul 2012 14:52:23 +0000 (+0000) Subject: filter: resolve Coverity warnings X-Git-Tag: v3.2.1~424 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=db7a45926b06976122975210f001f789fde26118;p=minix.git filter: resolve Coverity warnings --- diff --git a/drivers/filter/driver.c b/drivers/filter/driver.c index d0b742ffe..e5c16dcbe 100644 --- a/drivers/filter/driver.c +++ b/drivers/filter/driver.c @@ -393,7 +393,7 @@ static int check_problem(int which, int problem, int retries, int *tell_rs) driver[DRIVER_MAIN] = driver[DRIVER_BACKUP]; /* This is not necessary. */ - strcpy(MAIN_LABEL, BACKUP_LABEL); + strlcpy(MAIN_LABEL, BACKUP_LABEL, sizeof(MAIN_LABEL)); MAIN_MINOR = BACKUP_MINOR; }