From 5bbda279685f52693d4f5d9cb1500e295e06fc1e Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Sat, 1 Aug 2020 11:15:55 -0700 Subject: Started security. --- client/src/util/io.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/util/io.cpp') diff --git a/client/src/util/io.cpp b/client/src/util/io.cpp index 7e783c2..47d9dbe 100644 --- a/client/src/util/io.cpp +++ b/client/src/util/io.cpp @@ -1,10 +1,10 @@ #include "../include.h" #include "io.h" -bool io::read_file(const std::string_view name, std::vector& out) { - std::ifstream file(name.data(), std::ios::binary); +bool io::read_file(const std::string_view path, std::vector& out) { + std::ifstream file(path.data(), std::ios::binary); if (!file.good()) { - log_error("{} isnt valid.", name); + log_error("{} isnt valid.", path); return false; } -- cgit v1.2.3