From 15fde7dd84cc29c054857e5d8a7fdd4a8db10a97 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Wed, 23 Aug 2017 12:08:24 -0400 Subject: [PATCH] Make sure we return the descriptor from the file handle. Noted by Ralph Corderoy. --- uip/mhparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/mhparse.c b/uip/mhparse.c index 0eb474ae..4a031b0e 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -2892,7 +2892,7 @@ openURL (CT ct, char **file) fseeko(ce->ce_fp, 0, SEEK_SET); *file = ce->ce_file; - return fd; + return fileno(ce->ce_fp); } -- 2.56.0