]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix windows compilation
authorEric Bollengier <eric@baculasystems.com>
Thu, 4 Feb 2021 10:31:27 +0000 (11:31 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:00 +0000 (09:03 +0100)
bacula/src/findlib/drivetype.c

index 23fd3421ef0bbea453aaac7f92787703490eba6d..2d8866233900f384991b260d73952ca031dd8204 100644 (file)
@@ -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);