From 7983b68047aa61406fee7b104aba6a47d736416b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 8 Feb 2017 20:29:38 -0800 Subject: [PATCH] Cleanup. --- examples/common/bgfx_utils.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/common/bgfx_utils.cpp b/examples/common/bgfx_utils.cpp index 5e28327d4..93ab316de 100644 --- a/examples/common/bgfx_utils.cpp +++ b/examples/common/bgfx_utils.cpp @@ -3,8 +3,6 @@ * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ -#include // strlen - #include "common.h" #include @@ -137,9 +135,9 @@ static bgfx::ShaderHandle loadShader(bx::FileReaderI* _reader, const char* _name break; } - strcpy(filePath, shaderPath); - strcat(filePath, _name); - strcat(filePath, ".bin"); + bx::strlncpy(filePath, BX_COUNTOF(filePath), shaderPath); + bx::strlncat(filePath, BX_COUNTOF(filePath), _name); + bx::strlncat(filePath, BX_COUNTOF(filePath), ".bin"); return bgfx::createShader(loadMem(_reader, filePath) ); }