logo

checksrc

Check directory for potential non-source files git clone https://anongit.hacktivis.me/git/checksrc.git
commit: a5a707d6013a7dc8baae1378e3cd652d44164236
parent 1a77146620d5a3d5d252f825707f14ea0f544d7f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 24 Sep 2025 06:20:48 +0200

Use uint8_t instead of char for file contents

Diffstat:

Mchecksrc.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/checksrc.c b/checksrc.c @@ -9,6 +9,7 @@ #include <string.h> #include <unistd.h> #include <stdbool.h> +#include <stdint.h> // uint8_t #if 0 static const char *generated[] = { @@ -50,7 +51,7 @@ checkfile(const char *fname) int dumps = 0; for(;;) { - static char buf[4096]; + static uint8_t buf[4096]; int nread = read(fd, &buf, 4096); if(nread == 0) break;