X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_zlib%2Fos_zlib.c;h=ad208fb7c1b6c8aa96650c186bfcabafc83200c6;hp=9ad9516a7b0b85dd408303adb4eaca4e801d3770;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/os_zlib/os_zlib.c b/src/os_zlib/os_zlib.c index 9ad9516..ad208fb 100755 --- a/src/os_zlib/os_zlib.c +++ b/src/os_zlib/os_zlib.c @@ -1,14 +1,15 @@ -/* @(#) $Id: os_zlib.c,v 1.7 2009/06/24 18:53:06 dcid Exp $ */ +/* @(#) $Id: ./src/os_zlib/os_zlib.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ - + #include "shared.h" #include "os_zlib.h" @@ -16,10 +17,10 @@ int os_compress(char *src, char *dst, int src_size, int dst_size) { unsigned long int zl_dst = dst_size; - + /* We make sure to do not allow long sizes */ - if(compress2((unsigned char *)dst, - &zl_dst, + if(compress2((unsigned char *)dst, + &zl_dst, (unsigned char *)src, (unsigned long int)src_size, 9) == Z_OK) { @@ -35,10 +36,10 @@ int os_compress(char *src, char *dst, int src_size, int dst_size) int os_uncompress(char *src, char *dst, int src_size, int dst_size) { unsigned long int zl_dst = dst_size; - - if(uncompress((unsigned char *)dst, + + if(uncompress((unsigned char *)dst, &zl_dst, - (unsigned char *)src, + (unsigned char *)src, (unsigned long int)src_size) == Z_OK) { dst[zl_dst] = '\0';