Ticket #3124: patch.3.vfs.diff
File patch.3.vfs.diff, 578 bytes (added by , 16 years ago) |
---|
-
src/system/kernel/fs/vfs.cpp
5470 5470 return B_BAD_ADDRESS; 5471 5471 5472 5472 ASSERT(entry->d_reclen >= sizeof(struct dirent)); 5473 ASSERT(entry->d_reclen <= sizeof(buffer)); 5473 5474 5474 5475 if (user_memcpy(entry->d_name, userEntry->d_name, 5475 entry->d_reclen - sizeof(struct dirent) ) != B_OK)5476 entry->d_reclen - sizeof(struct dirent) + 1) != B_OK) 5476 5477 return B_BAD_ADDRESS; 5477 5478 } else 5478 5479 entry = userEntry;