[Fix] Another one. Sorry.

This commit is contained in:
Allanis 2013-02-23 21:41:51 +00:00
parent 54758a5de9
commit c5c0f16915

View File

@ -315,7 +315,7 @@ ssize_t pack_read(Packfile* file, void* buf, size_t count) {
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE
if((bytes = read(file->fd, buf, count)) == -1) { if((bytes = read(file->fd, buf, count)) == -1) {
#else #else
if((byts = freed(buf, 1, count, file->fp)) == -1) { if((bytes = freed(buf, 1, count, file->fp)) == -1) {
#endif #endif
ERR("Error while reading file: %s", strerror(errno)); ERR("Error while reading file: %s", strerror(errno));
return -1; return -1;