filter: resolve Coverity warnings

This commit is contained in:
David van Moolenbroek
2012-07-30 12:10:11 +00:00
parent da915d36b7
commit db7a45926b
+1 -1
View File
@@ -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;
}