summaryrefslogtreecommitdiff
path: root/graphics/asymptote/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/parser.cc')
-rw-r--r--graphics/asymptote/parser.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/asymptote/parser.cc b/graphics/asymptote/parser.cc
index c12a47c50e..60123250ed 100644
--- a/graphics/asymptote/parser.cc
+++ b/graphics/asymptote/parser.cc
@@ -58,8 +58,7 @@ int fpeek(int fd)
size_t pipe_input(char *buf, size_t max_size)
{
if(hangup && fpeek(fd) == EOF) {hangup=false; return 0;}
- fgets(buf,max_size-1,fin);
- return strlen(buf);
+ return strlen(fgets(buf,max_size-1,fin));
}
} // namespace yy