"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/plugins/it_extractor.c" between
libextractor-1.6.tar.gz and libextractor-1.7.tar.gz

About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.

it_extractor.c  (libextractor-1.6):it_extractor.c  (libextractor-1.7)
skipping to change at line 70 skipping to change at line 70
* @param ec extraction context * @param ec extraction context
*/ */
void void
EXTRACTOR_it_extract_method (struct EXTRACTOR_ExtractContext *ec) EXTRACTOR_it_extract_method (struct EXTRACTOR_ExtractContext *ec)
{ {
void *data; void *data;
char title[27]; char title[27];
char itversion[8]; char itversion[8];
const struct Header *head; const struct Header *head;
if (HEADER_SIZE > if ((ssize_t) HEADER_SIZE >
ec->read (ec->cls, ec->read (ec->cls,
&data, &data,
HEADER_SIZE)) HEADER_SIZE))
return; return;
head = (struct Header *) data; head = (struct Header *) data;
/* Check "magic" id bytes */ /* Check "magic" id bytes */
if (memcmp (head->magicid, "IMPM", 4)) if (memcmp (head->magicid, "IMPM", 4))
return; return;
/* Mime-type */ /* Mime-type */
if (0 != ec->proc (ec->cls, if (0 != ec->proc (ec->cls,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)