patch [#34103] path_util_split_dirstring.patch, path_util_split_dirstring_2.patch...
[blender.git] / source / blender / blenlib / intern / fileops.c
index 3f8b21103b86370b21602c4af3e8193a05e07cc9..937fdf5f7874346cb1dfdd33d7eb7db4ed7740dc 100644 (file)
@@ -176,7 +176,7 @@ bool BLI_file_is_writable(const char *filename)
        else {
                /* file doesn't exist -- check I can create it in parent directory */
                char parent[FILE_MAX];
-               BLI_split_dirfile(filename, parent, NULL, sizeof parent, 0);
+               BLI_split_dirfile(filename, parent, NULL, sizeof(parent), 0);
                writable = access(parent, X_OK | W_OK) == 0;
        }
        return writable;