projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force argv to be an array of long pointers on VMS
[openssl.git]
/
apps
/
vms_decc_init.c
diff --git
a/apps/vms_decc_init.c
b/apps/vms_decc_init.c
index 3c953aa3611ebc55cc801c33e2692a436c51ee57..ecf21afb6ea69201bb2c55b9d5c628a45ffc1969 100644
(file)
--- a/
apps/vms_decc_init.c
+++ b/
apps/vms_decc_init.c
@@
-68,6
+68,8
@@
# include <stdlib.h>
# include <unixlib.h>
# include <stdlib.h>
# include <unixlib.h>
+# include "apps.h"
+
/* Global storage. */
/* Flag to sense if decc_init() was called. */
/* Global storage. */
/* Flag to sense if decc_init() was called. */
@@
-103,6
+105,7
@@
decc_feat_t decc_feat_array[] = {
{(char *)NULL, 0}
};
{(char *)NULL, 0}
};
+
char **copy_argv(int *argc, char *argv[])
{
/*-
char **copy_argv(int *argc, char *argv[])
{
/*-
@@
-130,7
+133,7
@@
char **copy_argv(int *argc, char *argv[])
*/
int i, count = *argc;
*/
int i, count = *argc;
- char **newargv =
(char **)OPENSSL_malloc((count + 1) * sizeof *newargv
);
+ char **newargv =
app_malloc(sizeof(*newargv) * (count + 1), "argv copy"
);
for (i = 0; i < count; i++)
newargv[i] = argv[i];
for (i = 0; i < count; i++)
newargv[i] = argv[i];