mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix compilation under gcc -std=c89
This commit is contained in:
parent
359dd16760
commit
2c1e0326a3
@ -1,3 +1,7 @@
|
|||||||
|
2012-11-14 Ángel González <keisial@gmail.com>
|
||||||
|
* warc.c (warc_sha1_stream_with_payload): Fix compilation under
|
||||||
|
gcc -std=c89.
|
||||||
|
|
||||||
2012-11-24 Gijs van Tulder <gvtulder@gmail.com>
|
2012-11-24 Gijs van Tulder <gvtulder@gmail.com>
|
||||||
|
|
||||||
* warc.c (warc_write_cdx_record): Use `number_to_string' to
|
* warc.c (warc_write_cdx_record): Use `number_to_string' to
|
||||||
|
@ -527,7 +527,7 @@ warc_sha1_stream_with_payload (FILE *stream, void *res_block, void *res_payload,
|
|||||||
static char *
|
static char *
|
||||||
warc_base32_sha1_digest (char *sha1_digest)
|
warc_base32_sha1_digest (char *sha1_digest)
|
||||||
{
|
{
|
||||||
// length: "sha1:" + digest + "\0"
|
/* length: "sha1:" + digest + "\0" */
|
||||||
char *sha1_base32 = malloc (BASE32_LENGTH(SHA1_DIGEST_SIZE) + 1 + 5 );
|
char *sha1_base32 = malloc (BASE32_LENGTH(SHA1_DIGEST_SIZE) + 1 + 5 );
|
||||||
base32_encode (sha1_digest, SHA1_DIGEST_SIZE, sha1_base32 + 5,
|
base32_encode (sha1_digest, SHA1_DIGEST_SIZE, sha1_base32 + 5,
|
||||||
BASE32_LENGTH(SHA1_DIGEST_SIZE) + 1);
|
BASE32_LENGTH(SHA1_DIGEST_SIZE) + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user