From 156f638c6c16aeae921939c4cebfe43fc0668378 Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 2 Sep 2024 19:08:39 +0200 Subject: oops --- GNUmakefile | 3 ++- src/common/common.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 8ef4aec..2a814e1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,5 @@ #!/usr/bin/env -S gmake -f -GLAD ?= glad MKDIR ?= mkdir -p libs ::= openmpt fluidsynth @@ -11,6 +10,8 @@ srcs ::= $(wildcard src/modules/*.c src/common/*.c) objs ::= $(addprefix out/,$(notdir ${srcs:.c=.o})) deps ::= $(addprefix out/,$(notdir ${srcs:.c=.d})) +.SECONDARY: + .PHONY: all run clean all: out/mu-SDL2 out/mu-portaudio diff --git a/src/common/common.c b/src/common/common.c index 3fb1c6a..5ce79ad 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -18,7 +18,7 @@ int (*file_ext(char *file))(struct blob *, struct userdata *) { } struct blob load_file(char const *const name) { - const size_t START_SIZE = 1; + const size_t START_SIZE = 8192; FILE *file = fopen(name, "rb"); if (file == NULL) { return (struct blob) {.data = NULL}; -- cgit 1.4.1-2-gfad0