projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1456d18
)
Don't access non-existing element buf[256], use buf[255] instead.
author
Bodo Möller
<bodo@openssl.org>
Wed, 20 Dec 2000 10:11:06 +0000
(10:11 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Wed, 20 Dec 2000 10:11:06 +0000
(10:11 +0000)
Submitted by: draslar <draslar@elray.ch>
crypto/lhash/lh_test.c
patch
|
blob
|
history
diff --git
a/crypto/lhash/lh_test.c
b/crypto/lhash/lh_test.c
index 6008781e579907b2de23ffd43b2b307eacb07b09..0758d8837259843a2fd0bd6815eafe05f47f17da 100644
(file)
--- a/
crypto/lhash/lh_test.c
+++ b/
crypto/lhash/lh_test.c
@@
-75,7
+75,7
@@
main()
buf[0]='\0';
fgets(buf,256,stdin);
if (buf[0] == '\0') break;
- buf[25
6
]='\0';
+ buf[25
5
]='\0';
i=strlen(buf);
p=OPENSSL_malloc(i+1);
memcpy(p,buf,i+1);