diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index efa6a4fc59cd1..3b087d8eacee8 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -263,7 +263,7 @@ setinput(const char *source) } pipein++; } - (void) strcpy(magtape, source); + (void) strlcpy(magtape, source, sizeof(magtape)); } void