From 1e9591526ec195136ac9d3ca8ff8457bf66ff074 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sun, 14 Dec 1997 01:08:57 +0100
Subject: [PATCH] Fixed infinite loop bug.

Rev: tutorial/Wmml.pmod:1.15
---
 tutorial/Wmml.pmod | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tutorial/Wmml.pmod b/tutorial/Wmml.pmod
index 2482595634..c4eafe57d4 100644
--- a/tutorial/Wmml.pmod
+++ b/tutorial/Wmml.pmod
@@ -344,7 +344,8 @@ object(Tag) parse_pike_code(string x,
       if(x[e+1..e+1]=="*")
       {
 	p=e++;
-	while(x[e..e+1]!="*/") e++;
+	while(!(< "", "*/" >)[x[e..e+1]])
+	  e++;
 	e++;
 	ret+=({ Tag("ex_comment",([]), pos+e, ({ x[p..e]}) ) }); 
 	break;
-- 
GitLab