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:
parent
6fb9d3d7f5
commit
4a8d15f796
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user