[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1e931f1c3db: * src/comp.c (comp_hash_string): Count bytes, not ch
From: |
Mattias Engdegård |
Subject: |
master 1e931f1c3db: * src/comp.c (comp_hash_string): Count bytes, not chars. |
Date: |
Sun, 28 Apr 2024 10:50:04 -0400 (EDT) |
branch: master
commit 1e931f1c3db1588ba402d0eab60f03cc036f814a
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
* src/comp.c (comp_hash_string): Count bytes, not chars.
---
src/comp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/comp.c b/src/comp.c
index 99f51e07048..3ac6896aee1 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -744,7 +744,7 @@ static Lisp_Object
comp_hash_string (Lisp_Object string)
{
Lisp_Object digest = make_uninit_string (MD5_DIGEST_SIZE * 2);
- md5_buffer (SSDATA (string), SCHARS (string), SSDATA (digest));
+ md5_buffer (SSDATA (string), SBYTES (string), SSDATA (digest));
hexbuf_digest (SSDATA (digest), SDATA (digest), MD5_DIGEST_SIZE);
return Fsubstring (digest, Qnil, make_fixnum (HASH_LENGTH));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 1e931f1c3db: * src/comp.c (comp_hash_string): Count bytes, not chars.,
Mattias Engdegård <=