From 63e9ab67d778f115c1b2c35ebfcaec1f4c7fec46 Mon Sep 17 00:00:00 2001 From: Sunguk Lee Date: Tue, 17 Jan 2017 01:35:39 +0900 Subject: [PATCH] Fix stuck with homebrew sometimes plugin only allow stub's functions --- blit.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/blit.c b/blit.c index 9423ae8..b4bd31c 100644 --- a/blit.c +++ b/blit.c @@ -3,11 +3,7 @@ */ #include #include - -#include -#include -#include -#include +#include #include "blit.h" @@ -150,7 +146,7 @@ int blit_string(int sx,int sy,const char *msg) int blit_string_ctr(int sy,const char *msg) { - int sx = 960/2-strlen(msg)*(16/2); + int sx = 960/2-sceClibStrnlen(msg, 512)*(16/2); return blit_string(sx,sy,msg); } @@ -160,7 +156,7 @@ int blit_stringf(int sx, int sy, const char *msg, ...) char string[512]; va_start(list, msg); - vsprintf(string, msg, list); + sceClibVsnprintf(string, 512, msg, list); va_end(list); return blit_string(sx, sy, string);