2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
[deliverable/binutils-gdb.git] / sim / common / syscall.c
index 379f7e16df19728198987718edf1d49b729db92d..a3e7560bf484977a4446c8b838fa8cb5c88effb3 100644 (file)
@@ -291,7 +291,7 @@ cb_syscall (cb, sc)
 
        while (count > 0)
          {
-           if (fd == 0)
+           if (cb_is_stdin (cb, fd))
              result = (int) (*cb->read_stdin) (cb, buf,
                                                (count < FILE_XFR_SIZE
                                                 ? count : FILE_XFR_SIZE));
This page took 0.022454 seconds and 4 git commands to generate.