Skip to content

Commit

Permalink
2008-07-18 Andreas Schwab <schwab@suse.de>
Browse files Browse the repository at this point in the history
	* term.c (term_ioctl): Decode indirect parameter as int, not long.
  • Loading branch information
Roland McGrath authored and Patrick Jacques committed Nov 18, 2010
1 parent b3a3739 commit d71ebf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions term.c
Expand Up @@ -337,10 +337,10 @@ long code, arg;
case TIOCMBIS:
case TIOCMBIC:
case TIOCMSET:
if (umove(tcp, arg, &arg) < 0)
if (umove(tcp, arg, &i) < 0)
return 0;
tprintf(", [");
printflags(modem_flags, arg, "TIOCM_???");
printflags(modem_flags, i, "TIOCM_???");
tprintf("]");
return 1;
#endif /* TIOCMGET */
Expand Down Expand Up @@ -414,7 +414,7 @@ long code, arg;
case TIOCGPTN:
#endif
tprintf(", ");
printnum(tcp, arg, "%d");
printnum_int(tcp, arg, "%d");
return 1;

#if 0
Expand Down

0 comments on commit d71ebf5

Please sign in to comment.