replace fixed sizes with sizeof when passing string length since size wasn't always...
[blender.git] / source / blender / blenlib / intern / fileops.c
index 95b6a970b49e3318165d86420d0c5bce1524b8f1..ad0478060f2837562d69a616fcebfa6e0eeb61d7 100644 (file)
@@ -82,7 +82,7 @@ int BLI_file_gzip(const char *from, const char *to)
                return -2;
 
        while(1) {
-               readsize = read(file, buffer, 10240);
+               readsize = read(file, buffer, sizeof(buffer));
 
                if(readsize < 0) {
                        rval= -2; /* error happened in reading */