ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/vector.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/vector.c (file contents):
Revision 1.6 by tdb, Tue Apr 6 14:52:58 2004 UTC vs.
Revision 1.7 by ats, Wed Apr 7 10:33:50 2004 UTC

# Line 52 | Line 52 | void *sg_vector_resize(void *vector, vector_header *h,
52          if (new_count != h->alloc_count) {
53                  char *new_vector;
54  
55 <                new_vector = realloc(vector, new_count * h->item_size);
55 >                new_vector = sg_realloc(vector, new_count * h->item_size);
56                  if (new_vector == NULL && new_count != 0) {
57                          /* Out of memory -- free the contents of the vector. */
58                          sg_vector_resize(vector, h, 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines