- Timestamp:
- Mar 7, 2014, 3:21:30 PM (11 years ago)
- Branches:
- master
- Children:
- 8871953
- Parents:
- 270fd23
- git-author:
- Mike Belopuhov <mike@…> (03/07/14 15:17:23)
- git-committer:
- Mike Belopuhov <mike@…> (03/07/14 15:21:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
icb.c
r270fd23 ra2fadb4 82 82 83 83 is->last = getmonotime(); 84 type = msg[ 1];85 msg += 2;84 type = msg[0]; 85 msg++; 86 86 if (!ISSETF(is->flags, ICB_SF_LOGGEDIN) && type != ICB_M_LOGIN) { 87 87 icb_error(is, "Not logged in"); … … 378 378 const char *fmt, ...) 379 379 { 380 char buf[ICB_MSGSIZE ];380 char buf[ICB_MSGSIZE - 10]; /* truncate to make sure all fits */ 381 381 va_list ap; 382 382 struct icb_session *s; … … 481 481 icb_dowho(struct icb_session *is, struct icb_group *ig) 482 482 { 483 char buf[ICB_MSGSIZE ];483 char buf[ICB_MSGSIZE - 10]; /* truncate to make sure all fits */ 484 484 struct icb_session *s; 485 485 int nusers = 0; … … 510 510 icb_who(struct icb_session *is, struct icb_group *ig) 511 511 { 512 char buf[ICB_MSGSIZE ];512 char buf[ICB_MSGSIZE - 10]; /* truncate to make sure all fits */ 513 513 struct icb_group *g; 514 514
Note:
See TracChangeset
for help on using the changeset viewer.