Commits

Jakub Piotr Cłapa committed cae0b76

Fix error reporting of invalid characters in uuencoded stream.

Comments (0)

Files changed (1)

 
 local function decode1 (b)
   b = b - 32
-  if b < 0 or b > 64 then error(string.format('invalid input character in position %d: %d', i, b + 32), 2) end
+  if b < 0 or b > 64 then error(string.format('invalid input character: %d', b + 32), 2) end
   if b == 64 then b = 0 end
   return b
 end
 end
 
 local function decode_line (str)
-  local len = decode1(string.byte(str, 1, 1)) 
+  local len = decode1(string.byte(str, 1, 1))
   o = {}
   for i=2,#str,4 do
     o[#o+1] = decode3 (str, i)