ext/ezmlm/hash/hash.c
changeset 17 23c7f5c8ee39
parent 16 e135ccae6783
child 23 eedb2586dea4
--- a/ext/ezmlm/hash/hash.c	Fri May 12 16:17:41 2017 -0700
+++ b/ext/ezmlm/hash/hash.c	Tue May 16 13:58:34 2017 -0700
@@ -148,12 +148,12 @@
 
 	Check_Type( email, T_STRING );
 
-	email = rb_str_plus( rb_str_new2("<"), email);
+	email = rb_str_plus( rb_str_new2("<"), email );
 	input = StringValueCStr( email );
 
 	makehash( input, strlen(input), hash );
 
-	return rb_str_new2( hash );
+	return rb_str_new( hash, 20 );
 }