From 0c3df94c65f7f24329f4141aa0ec5d88099a1776 Mon Sep 17 00:00:00 2001 From: BroGamer <64546358+BroGamer4256@users.noreply.github.com> Date: Wed, 22 Jun 2022 12:55:43 +1200 Subject: [PATCH] Fix build script --- Makefile | 2 +- src/helpers.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 74a6dba..ead7972 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ patches: make -C patches/8.18 .PHONY: dist-no-7z -dist-no-7z: options ${OUT} ${patches} +dist-no-7z: options ${OUT} patches mkdir -p out/plugins cp ${TARGET}/${OUT}.dll out/ cp ${TARGET}/patches.*.dll out/plugins diff --git a/src/helpers.c b/src/helpers.c index 0f2d658..fec1515 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -76,7 +76,7 @@ printColour (int colour, const char *format, ...) { char buffer[255]; vsprintf (buffer, format, args); SetConsoleTextAttribute (consoleHandle, colour); - printf (buffer); + printf ("%s", buffer); SetConsoleTextAttribute (consoleHandle, FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED); va_end (args);