]> granicus.if.org Git - strace/commitdiff
2008-07-18 Andreas Schwab <schwab@suse.de>
authorRoland McGrath <roland@redhat.com>
Tue, 22 Jul 2008 00:21:43 +0000 (00:21 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 22 Jul 2008 00:21:43 +0000 (00:21 +0000)
* term.c (term_ioctl): Decode indirect parameter as int, not long.

term.c

diff --git a/term.c b/term.c
index 15897bd848f7f1488c777214a8d0e651e401f013..3c242505aca209d9db3b99e71bab2e36b0971b62 100644 (file)
--- a/term.c
+++ b/term.c
@@ -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 */
@@ -414,7 +414,7 @@ long code, arg;
        case TIOCGPTN:
 #endif
                tprintf(", ");
-               printnum(tcp, arg, "%d");
+               printnum_int(tcp, arg, "%d");
                return 1;
 
 #if 0