Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e8b8b74 in mainline


Ignore:
Timestamp:
2014-12-16T21:56:30Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
57265539
Parents:
26cf7a6
Message:

gzip header/footer is little-endian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/compress/gzip.c

    r26cf7a6 re8b8b74  
    3232#include <malloc.h>
    3333#include <unistd.h>
     34#include <byteorder.h>
    3435#include "gzip.h"
    3536#include "inflate.h"
     
    103104                return EINVAL;
    104105       
    105         *destlen = footer.size;
     106        *destlen = uint32_t_le2host(footer.size);
    106107       
    107108        /* Ignore extra metadata */
Note: See TracChangeset for help on using the changeset viewer.