projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7341e60
)
* src/comp.c (comp_hash_string): Count bytes, not chars.
author
Mattias Engdegård
<mattiase@acm.org>
Sun, 28 Apr 2024 13:24:46 +0000
(15:24 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Sun, 28 Apr 2024 14:48:44 +0000
(16:48 +0200)
src/comp.c
patch
|
blob
|
history
diff --git
a/src/comp.c
b/src/comp.c
index 99f51e070483f21e7d9ca34ec9399ec9271cce68..3ac6896aee1dfb571860bff92aeba123c7d69c62 100644
(file)
--- 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), S
CHAR
S (string), SSDATA (digest));
+ md5_buffer (SSDATA (string), S
BYTE
S (string), SSDATA (digest));
hexbuf_digest (SSDATA (digest), SDATA (digest), MD5_DIGEST_SIZE);
return Fsubstring (digest, Qnil, make_fixnum (HASH_LENGTH));