From 8c3fedd243b69349b426144e5e2b94ef4aea6a4c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 8 Jul 2020 03:01:45 +0000 Subject: CTAN sync 202007080301 --- graphics/asymptote/parser.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'graphics/asymptote/parser.cc') 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 -- cgit v1.2.3