From f43b94d7748e65b8c0cdae9533551ef884bf2144 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Sun, 23 Jul 2000 15:01:58 -0700
Subject: [PATCH] ok, this time I really fixed (I hope)

Rev: lib/modules/Process.pmod:1.26
---
 lib/modules/Process.pmod | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/lib/modules/Process.pmod b/lib/modules/Process.pmod
index a5b010a5eb..47e9692219 100644
--- a/lib/modules/Process.pmod
+++ b/lib/modules/Process.pmod
@@ -73,10 +73,18 @@ array(string) split_quoted_string(string s)
       case ' ':
       case '\t':
       case '\n':
-	while(strlen(x[e])==1 && e+1 < sizeof(x) &&
-	      (<' ','\t','\n'>) [x[e+1][0]])
-	  if(++e >= sizeof(x))
+	while(strlen(x[e])==1)
+	{
+	  if(e+1 < sizeof(x))
+	  {
+	    if((<' ','\t','\n'>) [x[e+1][0]])
+	      e++;
+	    else
+	      break;
+	  }else{
 	    return ret;
+	  }
+	}
 	ret+=({x[e][1..]});
       break;
 
-- 
GitLab