From 52d0077fa91c032a90d6abbae52a41caa9d64cbb Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 9 Dec 2020 13:03:56 +0800 Subject: [PATCH] fixed a bug it's add ! at error position. --- inc/hgl/filesystem/FileSystem.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/hgl/filesystem/FileSystem.h b/inc/hgl/filesystem/FileSystem.h index 6f90cda..c4afe63 100644 --- a/inc/hgl/filesystem/FileSystem.h +++ b/inc/hgl/filesystem/FileSystem.h @@ -43,10 +43,13 @@ namespace hgl tmp=trim(str->c_str(),len,isslash); - if(first) + if(!first) { *p=spear_char; ++p; + } + else + { first=false; }