diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-04 04:22:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-04 04:22:25 +0000 |
commit | 4adeb812601f9e245bd5543889e1aba213768894 (patch) | |
tree | 88bf70cfbaa1981b29813eb9166891b6accfa7b6 /src/md5sum.c | |
parent | 9684207d04f1489178a254adc35a35b9121fa628 (diff) | |
download | coreutils-4adeb812601f9e245bd5543889e1aba213768894.tar.xz |
(split_3): Correct test for 35-byte line to accomodate
fact that leading blanks may be stripped.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r-- | src/md5sum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index 31cd52155..f55ca34ce 100644 --- 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]; |