Sat, 19 Aug 2006 16:41:40 +0000
[gaim-migrate @ 16886]
Use STDIN_FILENO instead of 0 (does anyone know if they are different in some place?)
| console/libgnt/gntmain.c | file | annotate | diff | comparison | revisions |
--- a/console/libgnt/gntmain.c Sat Aug 19 13:44:47 2006 +0000 +++ b/console/libgnt/gntmain.c Sat Aug 19 16:41:40 2006 +0000 @@ -437,7 +437,7 @@ gboolean ret = FALSE; static GntKeyPressMode mode = GNT_KP_MODE_NORMAL; - int rd = read(0, buffer, sizeof(buffer) - 1); + int rd = read(STDIN_FILENO, buffer, sizeof(buffer) - 1); if (rd < 0) { endwin();