From a4a7b498dfc7f1672c4df079d81102d07646f0ea Mon Sep 17 00:00:00 2001
From: Per Hedbor <ph@opera.com>
Date: Thu, 13 May 1999 08:47:48 +0200
Subject: [PATCH] Fix

Rev: lib/modules/_Image_XPM.pmod:1.9
---
 lib/modules/_Image_XPM.pmod | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/modules/_Image_XPM.pmod b/lib/modules/_Image_XPM.pmod
index 4402f7d1a5..0deb3c55d7 100644
--- a/lib/modules/_Image_XPM.pmod
+++ b/lib/modules/_Image_XPM.pmod
@@ -96,16 +96,16 @@ array ok = ({
   "O",  "P",  "Q",  "R",  "S",  "T",  "U",  "V",  "W",  "X",  "Y",  "Z",  " ",
 });
 
-array cmap_f, cmap_t;
+array cmap_t;
 
 string encode( object what, mapping|void options )
 {
   int x,y, q;
+  array lcmapt;
   TI("Encode init");
   if(!options) options = ([]);
-  if(!cmap_f)
+  if(!cmap_t)
   {
-    cmap_f = allocate( 8100 );
     cmap_t = allocate( 8100 );
     for(x=0; x<90; x++)
       for(y=0; y<90; y++)
@@ -176,8 +176,6 @@ string encode( object what, mapping|void options )
   }
 
   TD(sprintf("Encoded %d rows", sizeof(rows)));
-//   foreach(rows, string row)
-//     res += "\""+replace( row, cmap_f, cmap_t )+"\",\n";
   res = res+"};\n";
   TE("Done");
   return res;
-- 
GitLab