Stop casting the const char * to void * to char * to make compile more happy

after r264573.

Someone submit to:	OpenBSD
MFC after:	13 days
X-MFC with:	r264573
This commit is contained in:
bz 2014-04-17 14:15:53 +00:00
parent 56709e11fd
commit 5286166087

View File

@ -348,7 +348,7 @@ bc_yyinput(char *buf, int maxlen)
skipchars = 0;
sigprocmask(SIG_SETMASK, &oset, NULL);
if (num > maxlen) {
el_push(el, (char *)(void *)bp + maxlen);
el_push(el, bp + maxlen);
num = maxlen;
}
memcpy(buf, bp, num);