--- a/dav/main.c Tue Oct 20 11:18:23 2015 +0200
+++ b/dav/main.c Fri Oct 23 22:15:12 2015 +0200
@@ -829,7 +829,7 @@
}
dav_set_content(res, in, (dav_read_func)fread);
- if(len > 0) {
+ if(len > 0 && len < 0x7d000000) {
dav_set_content_length(res, (size_t)len);
}
--- a/gcc.mk Tue Oct 20 11:18:23 2015 +0200
+++ b/gcc.mk Fri Oct 23 22:15:12 2015 +0200
@@ -31,7 +31,7 @@
AR = ar
RM = rm
-CFLAGS = -std=gnu99 -g -c
+CFLAGS = -std=gnu99 -g -c -D_FILE_OFFSET_BITS=64
COFLAGS = -o
LDFLAGS =
LOFLAGS = -o