From 512cc4105cfdfe179eff6f2cd36844ceac19290d Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Sat, 24 Feb 2018 00:06:45 +0100 Subject: [PATCH] Removes some compiler (mingw) warnings. --- src/io_util.c | 2 +- src/skillbar.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/io_util.c b/src/io_util.c index 6ef3810..7e5ca01 100644 --- a/src/io_util.c +++ b/src/io_util.c @@ -28,7 +28,7 @@ io_load_lua_buffer(char **dest, unsigned long *len, const char *filepath) PHYSFS_File *file = PHYSFS_openRead(filepath); PHYSFS_sint64 size = (unsigned long) PHYSFS_fileLength(file); char *buffer = ec_malloc(sizeof(char) * (unsigned long) size); - PHYSFS_read(file, buffer, 1, (PHYSFS_uint32) size); + PHYSFS_readBytes(file, buffer, (PHYSFS_uint32) size); PHYSFS_close(file); *len = (unsigned long) size; diff --git a/src/skillbar.c b/src/skillbar.c index b887119..1c3035b 100644 --- a/src/skillbar.c +++ b/src/skillbar.c @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +#include #include "defines.h" #include "skillbar.h" #include "texture.h"