--- projects/libstatgrab/src/libstatgrab/user_stats.c 2004/04/04 23:45:03 1.20 +++ projects/libstatgrab/src/libstatgrab/user_stats.c 2004/04/05 00:59:11 1.21 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: user_stats.c,v 1.20 2004/04/04 23:45:03 ats Exp $ + * $Id: user_stats.c,v 1.21 2004/04/05 00:59:11 ats Exp $ */ #ifdef HAVE_CONFIG_H @@ -97,7 +97,9 @@ user_stat_t *get_user_stats(){ if (num_users != 0) { pos--; } - VECTOR_RESIZE(name_list, pos + 1); + if (VECTOR_RESIZE(name_list, pos + 1) < 0) { + return NULL; + } name_list[pos] = '\0'; user_stats.num_entries = num_users;