]> git.pld-linux.org Git - packages/zlib.git/blob - minizip-1.2.3-malloc.patch
- fixed minizip Makefile.am (it should use fresh zlib headers and libs)
[packages/zlib.git] / minizip-1.2.3-malloc.patch
1 diff -up zlib-1.2.3/contrib/minizip/miniunz.c.pom zlib-1.2.3/contrib/minizip/miniunz.c
2 --- zlib-1.2.3/contrib/minizip/miniunz.c.pom    2005-07-12 20:08:40.000000000 +0200
3 +++ zlib-1.2.3/contrib/minizip/miniunz.c        2008-12-01 11:12:23.000000000 +0100
4 @@ -112,6 +112,11 @@ int makedir (newdir)
5      return 0;
6  
7    buffer = (char*)malloc(len+1);
8 +  if (buffer==NULL)
9 +  {
10 +    printf("Error allocating memory\n");
11 +    return UNZ_INTERNALERROR;
12 +  }                          
13    strcpy(buffer,newdir);
14  
15    if (buffer[len-1] == '/') {
This page took 0.029505 seconds and 3 git commands to generate.