Changeset 157 for trunk/lib/smb_deps.c


Ignore:
Timestamp:
11/22/09 19:47:22 (14 years ago)
Author:
tim
Message:

reorganized data parsing in regfi

simplified some length validation

added big data support to reglookup-recover

fixed reglookup-recover's handling of data values in the offset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/smb_deps.c

    r147 r157  
    2626#include "smb_deps.h"
    2727
    28 
    29 /* These act as replacements for numerous Samba memory allocation
    30  *   functions.
    31  */
    32 void* zalloc(size_t size)
    33 {
    34   void* ret_val = NULL;
    35   if((size > 0) && (ret_val = (void*)malloc(size)) != NULL)
    36     memset(ret_val, 0, size);
    37 
    38   return ret_val;
    39 }
    40 
    41 void* zcalloc(size_t size, unsigned int count)
    42 {
    43   return zalloc(size*count);
    44 }
    4528
    4629/* From lib/time.c */
Note: See TracChangeset for help on using the changeset viewer.