diff options
author | Ali Fardan <raiz@stellarbound.space> | 2020-10-23 10:34:29 +0300 |
---|---|---|
committer | Ali Fardan <raiz@stellarbound.space> | 2020-10-23 10:34:29 +0300 |
commit | 8224c6f61a2804eb45282681e089b80453cf83e3 (patch) | |
tree | 4ff8d87896d7b4e80543c6d392603bdd78703f3a /decode.c | |
parent | d83415b045a95827aaba5c7aee4633661a8bc019 (diff) | |
download | libgemtext-8224c6f61a2804eb45282681e089b80453cf83e3.tar.gz |
typofix
Diffstat (limited to 'decode.c')
-rw-r--r-- | decode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decode.c b/decode.c index f3d2384..b037a17 100644 --- a/decode.c +++ b/decode.c @@ -464,7 +464,7 @@ gemtext_decode_fd(int fd) tbuf = malloc(fst.st_size+1); if (tbuf == NULL) return NULL; - memset(tbuf, 0, sizeof(*ret)); + memset(tbuf, 0, fst.st_size+1); if (read(fd, tbuf, fst.st_size) == -1) { free(tbuf); @@ -536,7 +536,7 @@ gemtext_list_decode_fd(int fd) tbuf = malloc(fst.st_size+1); if (tbuf == NULL) return NULL; - memset(tbuf, 0, sizeof(*ret)); + memset(tbuf, 0, fst.st_size+1); if (read(fd, tbuf, fst.st_size) == -1) { free(tbuf); |