converted stdin to int with fileno before setting the file descriptor - vx32 - Local 9vx git repository for patches.
(HTM) git clone git://r-36.net/vx32
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 037fe6d6643e0364dc831360649d437e030def44
(DIR) parent a3eb8414b0900d956cda65c5017587d15fba78ea
(HTM) Author: John (EBo) David <ebo@users.sourceforge.net>
Date: Tue, 22 Jun 2010 05:39:41 -0500
converted stdin to int with fileno before setting the file descriptor
Diffstat:
M src/9vx/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/9vx/main.c b/src/9vx/main.c
@@ -306,7 +306,7 @@ readini(char *fn)
char *cp, *p, *q;
if(strcmp(fn, "-") == 0)
- fd = stdin;
+ fd = fileno(stdin);
else if((fd = open(fn, OREAD)) < 0)
return -1;