summaryrefslogtreecommitdiffstats
path: root/crypto/lhash/lh_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/lhash/lh_test.c')
-rw-r--r--crypto/lhash/lh_test.c2
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);