diff options
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c index 73303a20a..8943b2e3b 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -131,7 +131,7 @@ static struct tsession *sessions; | |||
131 | */ | 131 | */ |
132 | static char * | 132 | static char * |
133 | remove_iacs(struct tsession *ts, int *pnum_totty) { | 133 | remove_iacs(struct tsession *ts, int *pnum_totty) { |
134 | unsigned char *ptr0 = ts->buf1 + ts->wridx1; | 134 | unsigned char *ptr0 = (unsigned char *)ts->buf1 + ts->wridx1; |
135 | unsigned char *ptr = ptr0; | 135 | unsigned char *ptr = ptr0; |
136 | unsigned char *totty = ptr; | 136 | unsigned char *totty = ptr; |
137 | unsigned char *end = ptr + MIN(BUFSIZE - ts->wridx1, ts->size1); | 137 | unsigned char *end = ptr + MIN(BUFSIZE - ts->wridx1, ts->size1); |