diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-03-07 01:04:52 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-03-07 01:04:52 +0000 |
commit | 54e880371f5eb09c8f1b36eaae4f2543253a0bd3 (patch) | |
tree | 822d93a129321d21b11317969e3e4ac50ae5dfed | |
parent | 79a8239ae14b4b0a47612a095d4eb0c9a8de340c (diff) | |
download | netsurf-vince/prstllcache.tar.gz |
correctly terminate sha1 b64 encodingvince/prstllcache
-rw-r--r-- | gtk/llcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/llcache.c b/gtk/llcache.c index 36bab2f59..7c6f961f2 100644 --- a/gtk/llcache.c +++ b/gtk/llcache.c @@ -125,7 +125,7 @@ b64_store_fname_sha1(nsurl *url, enum llcache_store_flags flags) if (b64u == NULL) { return NULL; } - b64u[28] = 0; + b64u[27] = 0; LOG(("b64u len:%d from %d with \"%s\"", b64ulen, NSSHA1_DIGEST_SIZE + 1, b64u)); fname_len = strlen(storestate->params.path) + 31; fname = calloc(1, fname_len); |