From: Eric Bollengier Date: Thu, 4 Feb 2021 10:31:27 +0000 (+0100) Subject: Fix windows compilation X-Git-Tag: Release-11.3.2~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbefdeed9305113daa68a2b7affc02ceeccf664f;p=thirdparty%2Fbacula.git Fix windows compilation --- diff --git a/bacula/src/findlib/drivetype.c b/bacula/src/findlib/drivetype.c index 23fd3421ef..2d88662339 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);