diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-02-08 02:51:30 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-02-08 02:51:30 +0000 |
commit | 9071de6fdc9d39e5443d1982cf7689f5d2fc9d45 (patch) | |
tree | 2ba4851c1d77d4c9febc0125242f20725a8c7f92 /glib/gmem.c | |
parent | 28500009d46c3737af3a2e3480e38a5c7561db6b (diff) | |
download | glib-9071de6fdc9d39e5443d1982cf7689f5d2fc9d45.tar.gz |
Copy all elements of the allocations[] array, including the last. (Pointed
Sun Feb 7 21:56:00 1999 Owen Taylor <otaylor@redhat.com>
* gmem.c (g_mem_profile): Copy all elements
of the allocations[] array, including the last.
(Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
Diffstat (limited to 'glib/gmem.c')
-rw-r--r-- | glib/gmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gmem.c b/glib/gmem.c index 697e9df81..e7e215dfd 100644 --- a/glib/gmem.c +++ b/glib/gmem.c @@ -409,7 +409,7 @@ g_mem_profile (void) gulong local_freed_mem; g_mutex_lock (mem_profile_lock); - for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++) + for (i = 0; i < MEM_PROFILE_TABLE_SIZE; i++) local_allocations[i] = allocations[i]; local_allocated_mem = allocated_mem; local_freed_mem = freed_mem; |