Apply the Tru64 patch from Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
[openssl.git] / crypto / lhash / lh_test.c
index 294b42bc8297fbca351932f701df6e62d984d6cc..0758d8837259843a2fd0bd6815eafe05f47f17da 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,9 @@ main()
                buf[0]='\0';
                fgets(buf,256,stdin);
                if (buf[0] == '\0') break;
-               buf[256]='\0';
+               buf[255]='\0';
                i=strlen(buf);
-               p=Malloc(i+1);
+               p=OPENSSL_malloc(i+1);
                memcpy(p,buf,i+1);
                lh_insert(conf,p);
                }