diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 17:54:47 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 17:54:47 +0000 |
commit | 7039a66b58706457c7423de60556e04545432943 (patch) | |
tree | a512daebc3674c819766664c8ea17d41ef7fef02 /networking/httpd.c | |
parent | 1385899416a4396385ad421ae1f532be7103738a (diff) | |
download | busybox-w32-7039a66b58706457c7423de60556e04545432943.tar.gz busybox-w32-7039a66b58706457c7423de60556e04545432943.tar.bz2 busybox-w32-7039a66b58706457c7423de60556e04545432943.zip |
correct largefile support, add comments about it.
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index f3fe49cae..bbb2dfe7f 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -919,8 +919,8 @@ static int sendHeaders(HttpResponseNum responseNum) | |||
919 | 919 | ||
920 | if (config->ContentLength != -1) { /* file */ | 920 | if (config->ContentLength != -1) { /* file */ |
921 | strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); | 921 | strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); |
922 | len += sprintf(buf+len, "Last-Modified: %s\r\n%s "FILEOFF_FMT"\r\n", | 922 | len += sprintf(buf+len, "Last-Modified: %s\r\n%s "OFF_FMT"\r\n", |
923 | timeStr, Content_length, (FILEOFF_TYPE) config->ContentLength); | 923 | timeStr, Content_length, (off_t) config->ContentLength); |
924 | } | 924 | } |
925 | strcat(buf, "\r\n"); | 925 | strcat(buf, "\r\n"); |
926 | len += 2; | 926 | len += 2; |