Browse Source

(vfs_s_retrieve_file): use symbolic name for array size.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 2 years ago
parent
commit
6a83438163
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/vfs/direntry.c

+ 1 - 1
lib/vfs/direntry.c

@@ -1431,7 +1431,7 @@ vfs_s_retrieve_file (struct vfs_class *me, struct vfs_s_inode *ino)
 {
     /* If you want reget, you'll have to open file with O_LINEAR */
     off_t total = 0;
-    char buffer[8192];
+    char buffer[BUF_8K];
     int handle;
     ssize_t n;
     off_t stat_size = ino->st.st_size;