Searched refs:newch (Results 1 – 2 of 2) sorted by relevance
/PHP-5.4/ext/fileinfo/libmagic/ |
H A D | compress.c | 321 unsigned char **newch, size_t n) in uncompressgzipped() argument 348 if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) { in uncompressgzipped() 356 z.next_out = *newch; in uncompressgzipped() 379 (*newch)[n] = '\0'; in uncompressgzipped() 387 const unsigned char *old, unsigned char **newch, size_t n) in uncompressbuf() argument 396 return uncompressgzipped(ms, old, newch, n); in uncompressbuf() 475 *newch = (unsigned char *) emalloc(HOWMANY + 1); in uncompressbuf() 477 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) { in uncompressbuf() 482 efree(*newch); in uncompressbuf() 484 newch[0] = '\0'; in uncompressbuf() [all …]
|
/PHP-5.4/ext/fileinfo/ |
H A D | libmagic.patch | 1178 * uncompress(method, old, n, newch) - uncompress old into new, 1278 - if ((*newch = CAST(unsigned char *, malloc(HOWMANY + 1))) == NULL) { 1279 + if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) { 1311 - if ((*newch = (unsigned char *) malloc(HOWMANY + 1)) == NULL) { 1319 + *newch = (unsigned char *) emalloc(HOWMANY + 1); 1321 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) { 1326 - free(*newch); 1327 + efree(*newch); 1329 newch[0] = '\0';
|
Completed in 12 milliseconds