diff options
Diffstat (limited to 'lib/macro.c')
-rw-r--r-- | lib/macro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/macro.c b/lib/macro.c index 0323f2873..4d965a774 100644 --- a/lib/macro.c +++ b/lib/macro.c @@ -203,7 +203,8 @@ rdcl(char *buf, size_t size, FD_t fd, int escapes) *q = '\0'; do { - if (fgets(q, size, fpio->ffileno(fd)) == NULL) /* read next line */ + /* read next line */ + if (fgets(q, size, (FILE *)fdGetFp(fd)) == NULL) break; nb = strlen(q); nread += nb; |