mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 04:19:10 -04:00
Fix a typo in 7484df61c981fc33db2~
This commit is contained in:
parent
545a61145c
commit
f8095d64e2
2
evutil.c
2
evutil.c
@ -134,7 +134,7 @@ evutil_read_file(const char *filename, char **content_out, size_t *len_out,
|
||||
#ifdef WIN32
|
||||
#define N_TO_READ(x) ((x) > INT_MAX) ? INT_MAX : ((int)(x))
|
||||
#else
|
||||
#defien N_TO_READ(x) (x)
|
||||
#define N_TO_READ(x) (x)
|
||||
#endif
|
||||
while ((r = read(fd, mem+read_so_far, N_TO_READ(st.st_size - read_so_far))) > 0) {
|
||||
read_so_far += r;
|
||||
|
Loading…
x
Reference in New Issue
Block a user