projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bae9a65
)
split a long line
author
Jim Meyering
<jim@meyering.net>
Sat, 26 Jan 2002 22:04:00 +0000
(22:04 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 26 Jan 2002 22:04:00 +0000
(22:04 +0000)
src/md5sum.c
patch
|
blob
|
history
diff --git
a/src/md5sum.c
b/src/md5sum.c
index
33eb385
..
a5a31d0
100644
(file)
--- a/
src/md5sum.c
+++ b/
src/md5sum.c
@@
-1,5
+1,5
@@
/* Compute MD5 or SHA1 checksum of files or strings
/* Compute MD5 or SHA1 checksum of files or strings
- Copyright (C) 1995-200
1
Free Software Foundation, Inc.
+ Copyright (C) 1995-200
2
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-410,7
+410,8
@@
digest_check (const char *checkfile_name, int (*digest_stream)(FILE *, void *))
in check file. Ignore case of hex digits. */
for (cnt = 0; cnt < digest_bin_bytes; ++cnt)
{
in check file. Ignore case of hex digits. */
for (cnt = 0; cnt < digest_bin_bytes; ++cnt)
{
- if (TOLOWER (hex_digest[2 * cnt]) != bin2hex[bin_buffer[cnt] >> 4]
+ if (TOLOWER (hex_digest[2 * cnt])
+ != bin2hex[bin_buffer[cnt] >> 4]
|| (TOLOWER (hex_digest[2 * cnt + 1])
!= (bin2hex[bin_buffer[cnt] & 0xf])))
break;
|| (TOLOWER (hex_digest[2 * cnt + 1])
!= (bin2hex[bin_buffer[cnt] & 0xf])))
break;