Skip to content
Permalink
Browse files

Fix oversize buffer

Patch by: michaelortmann
  • Loading branch information...
michaelortmann authored and vanosg committed Sep 17, 2019
1 parent 3ad1b7b commit 917d78b9ebbb2ea3d0b843a3ddc22ec0587a5d32
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/chanprog.c
  2. +1 −1 src/mod/ident.mod/ident.c
@@ -59,8 +59,8 @@ unsigned long timer_id = 1; /* Next timer of any sort will
* have this number */
struct chanset_t *chanset = NULL; /* Channel list */
char admin[121] = ""; /* Admin info */
char origbotname[NICKLEN + 1];
char botname[NICKLEN + 1]; /* Primary botname */
char origbotname[NICKLEN];
char botname[NICKLEN]; /* Primary botname */
char owner[121] = ""; /* Permanent botowner(s) */


@@ -53,7 +53,7 @@ static cmd_t ident_raw[] = {
static void ident_activity(int idx, char *buf, int len)
{
int s;
char buf2[IDENT_SIZE + sizeof " : USERID : UNIX : \r\n" + NICKLEN + 1], *pos;
char buf2[IDENT_SIZE + sizeof " : USERID : UNIX : \r\n" + NICKLEN], *pos;
ssize_t i;

s = answer(dcc[idx].sock, &dcc[idx].sockname, 0, 0);

0 comments on commit 917d78b

Please sign in to comment.
You can’t perform that action at this time.