Peter S. Mazinger 18 лет назад
Родитель
Сommit
a0f9202936
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      libc/sysdeps/linux/common/getdents.c
  2. 1 1
      libc/sysdeps/linux/common/getdents64.c

+ 1 - 1
libc/sysdeps/linux/common/getdents.c

@@ -63,7 +63,7 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
     dp = (struct dirent *) buf;
     skdp = kdp = alloca (red_nbytes);
 
-    retval = __syscall_getdents(fd, (char *)kdp, red_nbytes);
+    retval = __syscall_getdents(fd, (unsigned char *)kdp, red_nbytes);
     if (retval == -1)
 	return -1;
 

+ 1 - 1
libc/sysdeps/linux/common/getdents64.c

@@ -57,7 +57,7 @@ ssize_t __getdents64 (int fd, char *buf, size_t nbytes)
     dp = (struct dirent64 *) buf;
     skdp = kdp = alloca (red_nbytes);
 
-    retval = __syscall_getdents64(fd, (char *)kdp, red_nbytes);
+    retval = __syscall_getdents64(fd, (unsigned char *)kdp, red_nbytes);
     if (retval == -1)
 	return -1;