shithub: pc

Download patch

ref: 64fae11fbc7b6207a83d57d3455cdc98c5218f6a
parent: 4d6118dcaca958f47209749457b4edcf4c680fe4
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Mar 30 13:16:15 EDT 2022

bio: last character should have type int to not miss EOF in some situations

--- a/include/bio.h
+++ b/include/bio.h
@@ -3,7 +3,7 @@
 typedef FILE Biobufhdr;
 typedef Biobufhdr Biobuf;
 
-static uint8_t lastc;
+static int lastc;
 
 static int
 Bgetc(Biobufhdr *bp)