Mercurial > hg > xemacs-beta
diff src/md5.c @ 16:0293115a14e9 r19-15b91
Import from CVS: tag r19-15b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:20 +0200 |
parents | ac2d302a0011 |
children | 859a2309aef8 |
line wrap: on
line diff
--- a/src/md5.c Mon Aug 13 08:48:43 2007 +0200 +++ b/src/md5.c Mon Aug 13 08:49:20 2007 +0200 @@ -398,8 +398,8 @@ string = make_string_from_buffer (b, begv, endv - begv); /* Compute the digest */ - MDUpdate (&context, (unsigned char *) string_data (XSTRING (string)), - string_length (XSTRING (string))); + MDUpdate (&context, (unsigned char *) XSTRING_DATA (string), + XSTRING_LENGTH (string)); } else { @@ -408,7 +408,7 @@ get_string_range_byte (object, start, end, &bstart, &bend, GB_HISTORICAL_STRING_BEHAVIOR); len = bend - bstart; - MDUpdate (&context, ((unsigned char *) string_data (XSTRING (object)) + MDUpdate (&context, ((unsigned char *) XSTRING_DATA (object) + bstart), len); }