]> git.eshelyaron.com Git - emacs.git/commitdiff
(send_process): Test pty_flag field for nil, not 0.
authorRichard M. Stallman <rms@gnu.org>
Tue, 12 Apr 1994 04:39:34 +0000 (04:39 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 12 Apr 1994 04:39:34 +0000 (04:39 +0000)
src/process.c

index d81b7c9fbab7889ba2a3760142413a2a4e32eec8..971d2cba71bdac49e0690c960524a2ef85ce7235 100644 (file)
@@ -2289,7 +2289,7 @@ send_process (proc, buf, len)
 
        /* Don't send more than pty_max_bytes bytes at a time.  */
        /* Subtract 1 to leave room for the EOF.  */
-       if (this >= pty_max_bytes && XPROCESS (proc)->pty_flag != 0)
+       if (this >= pty_max_bytes && !NILP (XPROCESS (proc)->pty_flag))
          this = pty_max_bytes - 1;
 
        old_sigpipe = (SIGTYPE (*) ()) signal (SIGPIPE, send_process_trap);