From 7226de91c496d22164e7d84d552fb49f3cdc3df8 Mon Sep 17 00:00:00 2001
From: burris <burris>
Date: Mon, 23 Sep 2002 23:43:43 +0000
Subject: [PATCH] fix bugs in stringify

---
 hash.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hash.py b/hash.py
index 7f42f31..4210385 100644
--- a/hash.py
+++ b/hash.py
@@ -12,7 +12,9 @@ def intify(hstr):
 def stringify(int):
     str = hex(int)[2:]
     if str[-1] == 'L':
-	str = str[:1]
+	str = str[:-1]
+    if len(str) % 2 != 0:
+	str = '0' + str
     str = str.decode('hex')
     return (20 - len(str)) *'\x00' + str
     
-- 
2.39.5