Changeset 652

Show
Ignore:
Timestamp:
12/12/05 22:49:58 (3 years ago)
Author:
smoku
Message:

replaced fixed 70 status characters length with GG_STATUS_DESCR_MAXSIZE

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/message.c

    r630 r652  
    359359                        on=TRUE; 
    360360                        g_free(user->invisible_status); 
    361                         user->invisible_status=g_strndup(args,70); 
     361                        user->invisible_status=g_strndup(args,GG_STATUS_DESCR_MAXSIZE); 
    362362                } 
    363363        } 
     
    394394        if (args) { 
    395395                if (!g_strcasecmp(args,"off")) user->status=NULL; 
    396                 else user->status=g_strndup(args,70); 
     396                else user->status=g_strndup(args,GG_STATUS_DESCR_MAXSIZE); 
    397397        } 
    398398        else user->status=NULL; 
     
    424424        if (args) { 
    425425                if (!g_strcasecmp(args,"off")) user->offline_status=NULL; 
    426                 else user->offline_status=g_strndup(args,70); 
     426                else user->offline_status=g_strndup(args,GG_STATUS_DESCR_MAXSIZE); 
    427427        } 
    428428        else user->offline_status=NULL; 
  • trunk/src/sessions.c

    r642 r652  
    954954                r->available=available; 
    955955                if (show) r->show=g_strdup(show); 
    956                 if (status) r->status=g_strndup(status, 70); 
     956                if (status) r->status=g_strndup(status, GG_STATUS_DESCR_MAXSIZE); 
    957957                if (priority>=0) r->priority=priority; 
    958958                session_send_status(s);