X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fwarc.c;h=fb506a7f99aee4ad9405dd0aa0207df7130dd042;hp=3203d4defe404b7eae7bfe61ea5895f6db4195dd;hb=3ebbd84518281f348659bf8cf2d7bdc25ec4e140;hpb=b60ff61b754ab9d8a72c0eb9df6ec305d3686564 diff --git a/src/warc.c b/src/warc.c index 3203d4de..fb506a7f 100644 --- a/src/warc.c +++ b/src/warc.c @@ -245,7 +245,7 @@ static bool warc_write_block_from_file (FILE *data_in) { /* Add the Content-Length header. */ - char content_length[22]; + char content_length[MAX_INT_TO_STRING_LEN(off_t)]; fseeko (data_in, 0L, SEEK_END); number_to_string (content_length, ftello (data_in)); warc_write_header ("Content-Length", content_length); @@ -1225,7 +1225,7 @@ warc_write_cdx_record (const char *url, const char *timestamp_str, if (redirect_location == NULL || strlen(redirect_location) == 0) redirect_location = "-"; - char offset_string[22]; + char offset_string[MAX_INT_TO_STRING_LEN(off_t)]; number_to_string (offset_string, offset); /* Print the CDX line. */