[BACK]Return to gzopen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / compress

Diff for /src/usr.bin/compress/gzopen.c between version 1.27 and 1.28

version 1.27, 2011/09/22 10:41:04 version 1.28, 2015/01/16 06:40:06
Line 58 
Line 58 
   (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).    (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
 */  */
   
 #include <sys/param.h>  
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/uio.h>  #include <sys/uio.h>
 #include <stdio.h>  #include <stdio.h>
Line 66 
Line 65 
 #include <string.h>  #include <string.h>
 #include <errno.h>  #include <errno.h>
 #include <unistd.h>  #include <unistd.h>
   #include <limits.h>
 #include <zlib.h>  #include <zlib.h>
 #include "compress.h"  #include "compress.h"
   
Line 348 
Line 348 
   
         if ((flags & ORIG_NAME) != 0) { /* read/save the original file name */          if ((flags & ORIG_NAME) != 0) { /* read/save the original file name */
                 if ((ep = name) != NULL)                  if ((ep = name) != NULL)
                         ep += MAXPATHLEN - 1;                          ep += PATH_MAX - 1;
                 while ((c = get_byte(s)) != EOF) {                  while ((c = get_byte(s)) != EOF) {
                         s->z_hlen++;                          s->z_hlen++;
                         if (c == '\0')                          if (c == '\0')

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28