colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 99991ca2edf0d7e96ff989a366b58f7c13544ea4
Parent: 581a15e9a79d0eb49e9e2cbc86df99e13d9a2636
Author: Randy Palamar
Date:   Wed,  7 Aug 2024 10:00:24 -0600

fix inane win32 nonsense part 2

Diffstat:
Mgen_incs.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gen_incs.c b/gen_incs.c @@ -32,7 +32,7 @@ read_whole_file(char *name, s8 *mem) exit(1); } res.data = mem->data; - res.len = fread(res.data, res.len, 1, fp); + res.len = fread(res.data, 1, res.len, fp); fclose(fp); mem->data += res.len; @@ -176,7 +176,7 @@ main(void) } if (line.len) { fputc('"', out_file); - fwrite(line.data, line.len, 1, out_file); + fwrite(line.data, 1, line.len, out_file); fputs("\\n\"\n\t", out_file); } } while (s.len > 0);