Check return values of <Digest>_Init functions in low level digest calls.
[openssl.git] / crypto / lhash / lh_test.c
index 294b42bc8297fbca351932f701df6e62d984d6cc..85700c859bf39e8eaad7289fe75ba57721b3fb2d 100644 (file)
@@ -59,7 +59,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "lhash.h"
+#include <openssl/lhash.h>
 
 main()
        {
@@ -75,9 +75,8 @@ main()
                buf[0]='\0';
                fgets(buf,256,stdin);
                if (buf[0] == '\0') break;
-               buf[256]='\0';
                i=strlen(buf);
-               p=Malloc(i+1);
+               p=OPENSSL_malloc(i+1);
                memcpy(p,buf,i+1);
                lh_insert(conf,p);
                }