From c890a59c32c865f1cd7d7a735c9ef690dfced4f7 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 21 Sep 2020 20:39:38 +0800 Subject: [PATCH] fix zero-end bug in FileSystem.h --- inc/hgl/filesystem/FileSystem.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/hgl/filesystem/FileSystem.h b/inc/hgl/filesystem/FileSystem.h index 9620f54..6d90d1f 100644 --- a/inc/hgl/filesystem/FileSystem.h +++ b/inc/hgl/filesystem/FileSystem.h @@ -52,7 +52,7 @@ namespace hgl if(fullname.Length()<=1) return(String()); - const T spear_char[] = { '/','\\' }; + const T spear_char[] = { '/','\\',0 }; const int pos=fullname.FindRightChar(spear_char); @@ -73,7 +73,7 @@ namespace hgl if(filename.Length()<=1) return(String()); - const T spear_char[] = { '/','\\' }; + const T spear_char[] = { '/','\\',0 }; const int dot=filename.FindRightChar(split_char); const int pos=filename.FindRightChars(spear_char); @@ -149,7 +149,7 @@ namespace hgl if(filename.Length()<=1) return(String()); - const T spear_char[] = { '/','\\',':'}; + const T spear_char[] = { '/','\\',':',0}; const int pos=filename.FindRightChars(spear_char); @@ -171,7 +171,7 @@ namespace hgl if(fullname.Length()<=1) return(String()); - const T gap_char[2]={'\\','/'}; + const T gap_char[]={'\\','/',0}; T *p=nullptr;