Fix what was a common idiom in PDP-11 days: declare a local int and

use the address of that int for read(2). While this happens to work on
LE, it surely is wrong on BE.
This commit is contained in:
harti 2003-07-30 16:02:50 +00:00
parent 6fb9d3d7f5
commit 4a8d15f796

View File

@ -1140,8 +1140,8 @@ main(int argc, char *argv[])
}
if ( ns ) {
int c1;
int nr;
char c1;
int nr;
nr = read ( fileno(stdin), &c1, 1 );
c1 &= 0xff;