Patch from Denis Vlasenko turning static const int (which gets emitted into
[oweals/busybox.git] / networking / telnetd.c
index 73303a20a4dbf4131b4c9f980ada5a5ee3083777..8943b2e3b181c7e44080d199a17e56556d530a85 100644 (file)
@@ -131,7 +131,7 @@ static struct tsession *sessions;
   */
 static char *
 remove_iacs(struct tsession *ts, int *pnum_totty) {
-       unsigned char *ptr0 = ts->buf1 + ts->wridx1;
+       unsigned char *ptr0 = (unsigned char *)ts->buf1 + ts->wridx1;
        unsigned char *ptr = ptr0;
        unsigned char *totty = ptr;
        unsigned char *end = ptr + MIN(BUFSIZE - ts->wridx1, ts->size1);