X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=lib%2Fgunzip.c;h=832b3064e7614bc7c74159ca04f62b3122420356;hb=08848e9c317cb337d438cc657e63f2c3ae92d6d3;hp=bc746d655e60aebc84c207c634728b3f1a4e1e40;hpb=588d269ffe736c3dc03f63c3708d82eb33e670ee;p=oweals%2Fu-boot.git diff --git a/lib/gunzip.c b/lib/gunzip.c index bc746d655e..832b3064e7 100644 --- a/lib/gunzip.c +++ b/lib/gunzip.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -193,7 +194,7 @@ int gzwrite(unsigned char *src, int len, s.next_in = src + i; s.avail_in = payload_size+8; - writebuf = (unsigned char *)malloc(szwritebuf); + writebuf = (unsigned char *)malloc_cache_aligned(szwritebuf); /* decompress until deflate stream ends or end of file */ do {