diff options
Diffstat (limited to 'src/resources/buddylist.cpp')
-rw-r--r-- | src/resources/buddylist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/buddylist.cpp b/src/resources/buddylist.cpp index 6293bc84..2e2cdea6 100644 --- a/src/resources/buddylist.cpp +++ b/src/resources/buddylist.cpp @@ -53,8 +53,8 @@ void BuddyList::loadFile(void) } do { - buddy = (char *) calloc(LEN_USERNAME, sizeof(char)); - inputStream.getline(buddy, LEN_USERNAME); + buddy = (char *) calloc(LEN_MAX_USERNAME, sizeof(char)); + inputStream.getline(buddy, LEN_MAX_USERNAME); // Ugly ? if(strcmp(buddy,"") != 0) buddylist.push_back(buddy); free(buddy); |