From fbefdeed9305113daa68a2b7affc02ceeccf664f Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 4 Feb 2021 11:31:27 +0100 Subject: [PATCH] Fix windows compilation --- bacula/src/findlib/drivetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/findlib/drivetype.c b/bacula/src/findlib/drivetype.c index 23fd3421e..2d8866233 100644 --- a/bacula/src/findlib/drivetype.c +++ b/bacula/src/findlib/drivetype.c @@ -58,7 +58,7 @@ bool drivetype(const char *fname, char *dt, int dtlen) UINT type; /* Copy Drive Letter, colon, and backslash to rootpath. bstrncpy will null-terminate the string */ - bstrncpy(rootpath, fname, sizeof(rootpath); + bstrncpy(rootpath, fname, sizeof(rootpath)); type = GetDriveType(rootpath); -- 2.47.3