Changeset 1377

Show
Ignore:
Timestamp:
09/11/07 11:32:44 (1 year ago)
Author:
till
Message:

nebula - 64-bit-compatible malloc

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nebula/trunk/src/cluster.c

    r1373 r1377  
    2727 
    2828u_int16_t add_entry_to_cluster(cluster *cl, hash_list *entry) { 
    29         if ((cl->entries = (hash_list **) realloc(cl->entries, (cl->cnt+1) * 4)) == NULL) { 
     29        if ((cl->entries = (hash_list **) realloc(cl->entries, (cl->cnt+1) * sizeof(hash_list *))) == NULL) { 
    3030                fprintf(stderr, "Error - Unable to allocate memory: %m.\n"); 
    3131                exit(EXIT_FAILURE);