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:
9684207
)
(split_3): Correct test for 35-byte line to accomodate
author
Jim Meyering
<jim@meyering.net>
Thu, 4 Jul 1996 04:22:25 +0000
(
04:22
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 4 Jul 1996 04:22:25 +0000
(
04:22
+0000)
fact that leading blanks may be stripped.
src/md5sum.c
patch
|
blob
|
history
diff --git
a/src/md5sum.c
b/src/md5sum.c
index
31cd521
..
f55ca34
100644
(file)
--- a/
src/md5sum.c
+++ b/
src/md5sum.c
@@
-140,9
+140,9
@@
split_3 (char *s, size_t s_len, char **u, int *binary, char **w)
while (ISWHITE (s[i]))
++i;
- /* The line
has to be at least 35 characters long
to contain correct
+ /* The line
must have at least 35 more characters
to contain correct
message digest information. */
- if (s_len >= 32 + 2 + 1)
+ if (s_len
- i
>= 32 + 2 + 1)
{
char *p;
*u = &s[i];