pike.git / src / modules / Image / encodings / wbf.c

version» Context lines:

pike.git/src/modules/Image/encodings/wbf.c:64:    int header;    int fix_header_field;    int ext_header_field;    struct ext_header *first_ext_header;   };      static void read_string( struct buffer *from, unsigned int len, char *to )   {    if( from->len < len )    Pike_error("Invalid data format\n"); -  MEMCPY( from->str, to, len ); +  memcpy( from->str, to, len );    from->str += len;    from->len -= len;   }      static unsigned char read_uchar( struct buffer *from )   {    unsigned char res = 0;    if(from->len)    {    res = from->str[0];