pull/79/head
Dave Murphy 2012-05-16 22:22:54 +01:00
rodzic 8e4efc3602
commit 5bbef2f18b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -16,9 +16,9 @@ void *mmap (void *addr, size_t len, int prot, int flags, int fd, long long offs
if ( NULL == buf ) return MAP_FAILED;
if (lseek(fd,offset,SEEK_SET) != offset) return MAP_FAILED;
count = read(fd, buf, len);
if (count != len) {
free (buf);
return MAP_FAILED;