summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 8205686d..ab9f1076 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -271,7 +271,9 @@ friend_load(int type)
myfriends[friendcount++] = unum;
fclose(fp);
}
+ qsort(myfriends, friendcount, sizeof(int), qsort_intcompar);
memcpy(currutmp->friend, myfriends, sizeof(myfriends));
+ currutmp->nFriends = friendcount;
}
if (!type || type & FRIEND_REJECT) {