diff --git a/src/smblib/smblib.c b/src/smblib/smblib.c
index e7d43c141c80e95f0343408f38f776f2a36c4f81..34915f91c8eb0815e30bce32ce2a3ece73235992 100644
--- a/src/smblib/smblib.c
+++ b/src/smblib/smblib.c
@@ -2567,7 +2567,7 @@ hash_t* SMBCALL smb_hash(ulong msgnum, ulong t, unsigned source, unsigned flags
 hash_t* SMBCALL smb_hashstr(ulong msgnum, ulong t, unsigned source, unsigned flags
 							,const char* str)
 {
-	uchar*	p=(uchar*)str;
+	char*	p=(uchar*)str;
 	hash_t*	hash;
 
 	if(flags&SMB_HASH_PROC_MASK) {	/* string pre-processing */