From 4d150c2fe34a0778d00f2b3e9dec374cf3d1f7c2 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 1 Jul 2019 21:03:45 +0200 Subject: [PATCH] No way this is working! --- tests/path_split.aer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/path_split.aer b/tests/path_split.aer index 015f1c5..09cd64c 100644 --- a/tests/path_split.aer +++ b/tests/path_split.aer @@ -5,7 +5,8 @@ class Program { $path = trim($path); string $str, $temp; char $char; - for(int $x = 0; $char = $path[$x]; $x++) { + for(int $x = 0; $x < strlen($path); $x++) { + $char = $path[$x]; if(!strstr('/', $char)) $temp += $char; else if($temp) { $str += $temp;