Fixed compiler warning

SVN revision: 2085
This commit is contained in:
Stefan Ritt 2008-04-03 07:10:19 +00:00
parent 6b9d7b3471
commit fb04d24270

View File

@ -7964,7 +7964,7 @@ int exist_file(char *file_name)
void send_file_direct(char *file_name) void send_file_direct(char *file_name)
{ {
int fh, i, length, delta; int fh, i, length, delta;
char str[MAX_PATH_LENGTH], charset[80]; char str[MAX_PATH_LENGTH], charset[80], format[80];
time_t now; time_t now;
struct tm *gmt; struct tm *gmt;
@ -7986,7 +7986,8 @@ void send_file_direct(char *file_name)
time(&now); time(&now);
now += (int) (3600 * 24); now += (int) (3600 * 24);
gmt = gmtime(&now); gmt = gmtime(&now);
strftime(str, sizeof(str), "%A, %d-%b-%y %H:%M:%S GMT", gmt); strcpy(format, "%A, %d-%b-%y %H:%M:%S GMT");
strftime(str, sizeof(str), format, gmt);
rsprintf("Expires: %s\r\n", str); rsprintf("Expires: %s\r\n", str);
} }