[Fix] Hm. Fixing locally the testing on a remote server means push and pull spam. :)

This commit is contained in:
Allanis 2013-02-23 21:43:26 +00:00
parent c5c0f16915
commit 14735a362d

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((bytes = freed(buf, 1, count, file->fp)) == -1) { if((bytes = fread(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;