diff options
author | Norbert Preining <norbert@preining.info> | 2020-07-08 03:01:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-07-08 03:01:45 +0000 |
commit | 8c3fedd243b69349b426144e5e2b94ef4aea6a4c (patch) | |
tree | f5842753f11a90141f3cc2e356c3a04766e8d81e /graphics/asymptote/parser.cc | |
parent | ef87f13c4503a2aa4a9098cbf33e0bfcad19008e (diff) |
CTAN sync 202007080301
Diffstat (limited to 'graphics/asymptote/parser.cc')
-rw-r--r-- | graphics/asymptote/parser.cc | 3 |
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 |