[Fix] Another one. Sorry.
This commit is contained in:
parent
54758a5de9
commit
c5c0f16915
@ -315,7 +315,7 @@ ssize_t pack_read(Packfile* file, void* buf, size_t count) {
|
||||
#ifdef _POSIX_SOURCE
|
||||
if((bytes = read(file->fd, buf, count)) == -1) {
|
||||
#else
|
||||
if((byts = freed(buf, 1, count, file->fp)) == -1) {
|
||||
if((bytes = freed(buf, 1, count, file->fp)) == -1) {
|
||||
#endif
|
||||
ERR("Error while reading file: %s", strerror(errno));
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user