diff src/common.c @ 48:652343b56a60

Remove the need for <inttypes.h> and <stdbool.h>
author Paper <mrpapersonic@gmail.com>
date Sun, 22 May 2022 00:08:10 -0400
parents 7cb4ca7cf257
children fcd4b9fe957b
line wrap: on
line diff
--- a/src/common.c	Sat May 21 18:41:54 2022 -0400
+++ b/src/common.c	Sun May 22 00:08:10 2022 -0400
@@ -27,7 +27,7 @@
 		return 1;
 	}
 
-	while (fgetc(source) != EOF) {
+	while (!feof(source)) {
 		size_t b = fread(ch, 1, sizeof(ch), source);
 		if (b)
 			fwrite(ch, 1, b, target);