Home
last modified time | relevance | path

Searched refs:newch (Results 1 – 2 of 2) sorted by relevance

/PHP-5.3/ext/fileinfo/libmagic/
H A Dcompress.c321 unsigned char **newch, size_t n) in uncompressgzipped() argument
348 *newch = (unsigned char *)emalloc(HOWMANY + 1)); in uncompressgzipped()
354 z.next_out = *newch; in uncompressgzipped()
377 (*newch)[n] = '\0'; in uncompressgzipped()
385 const unsigned char *old, unsigned char **newch, size_t n) in uncompressbuf() argument
394 return uncompressgzipped(ms, old, newch, n); in uncompressbuf()
473 *newch = (unsigned char *) emalloc(HOWMANY + 1); in uncompressbuf()
475 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) { in uncompressbuf()
480 efree(*newch); in uncompressbuf()
482 newch[0] = '\0'; in uncompressbuf()
[all …]
/PHP-5.3/ext/fileinfo/
H A Dlibmagic.patch991 * uncompress(method, old, n, newch) - uncompress old into new,
1104 - if ((*newch = CAST(unsigned char *, malloc(HOWMANY + 1))) == NULL) {
1107 + *newch = (unsigned char *)emalloc(HOWMANY + 1));
1124 - if ((*newch = (unsigned char *) malloc(HOWMANY + 1)) == NULL) {
1132 + *newch = (unsigned char *) emalloc(HOWMANY + 1);
1134 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) {
1139 - free(*newch);
1140 + efree(*newch);
1142 newch[0] = '\0';

Completed in 10 milliseconds