Changeset 3933 for trunk/console

Show
Ignore:
Timestamp:
10/07/04 15:42:56 (4 years ago)
Author:
emostar
Message:

Patch by Philip:

��- fixes a segfault which happened for me when a MSN user with a really long
id was added to my list.
��- removes newlines that was added to every message sent as a result of
hitting enter before the '.'

Location:
trunk/console/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r3922 r3933  
    19041904        return; 
    19051905      } 
     1906      sz--; 
    19061907      *sz = '\0'; 
    1907       sz++; 
     1908      sz += 2; 
    19081909      bool bDirect = SendDirect(data->szId, data->nPPID, *sz); 
    19091910      winMain->wprintf("%C%ASending message %s...", m_cColorInfo->nColor, 
  • trunk/console/src/console.h

    r3922 r3933  
    2929struct SUser 
    3030{ 
    31   char szKey[32]; 
    32   char szId[32]; 
     31  char szKey[256]; 
     32  char szId[256]; 
    3333  unsigned long nPPID; 
    3434  char *szLine; 
     
    4444  int pos; 
    4545  unsigned long nPPID; 
    46   char szId[32]; 
     46  char szId[256]; 
    4747  const struct SColorMap *color; 
    4848}; 
  • trunk/console/src/console_print.cpp

    r3922 r3933  
    373373{ 
    374374  char *title = "<C></B/40>Contacts"; 
    375   char *ulist[10000]; 
     375  char *ulist[1024]; 
    376376  int i = 0; 
    377377  struct SScrollUser *s = NULL;