diff options
author | Bodo Möller <bodo@openssl.org> | 2000-12-20 10:11:06 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-12-20 10:11:06 +0000 |
commit | 60f7492646cdebf12422aecb2cce29418ca105be (patch) | |
tree | 7446bf4778c2a444e9f279f6a96053e77e9bec34 /crypto/lhash/lh_test.c | |
parent | 1456d1860e0c9f934a5cb0b6fb42cf1255cacd87 (diff) |
Don't access non-existing element buf[256], use buf[255] instead.
Submitted by: draslar <draslar@elray.ch>
Diffstat (limited to 'crypto/lhash/lh_test.c')
-rw-r--r-- | crypto/lhash/lh_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/lhash/lh_test.c b/crypto/lhash/lh_test.c index 6008781e57..0758d88372 100644 --- 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[256]='\0'; + buf[255]='\0'; i=strlen(buf); p=OPENSSL_malloc(i+1); memcpy(p,buf,i+1); |