summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2014-06-05 15:42:34 -0500
committerCraig A. Berry <craigberry@mac.com>2014-06-05 15:42:34 -0500
commit4f119521f5464017c974c13638b5f9f1fc4af265 (patch)
tree5762d114f2ce4713059d5900f9d97be4a850643c /vms
parentbdcba584fd26e9a07f5d2d13db3b11fafca6bffe (diff)
downloadperl-4f119521f5464017c974c13638b5f9f1fc4af265.tar.gz
A malloc cast in vms/vms.c.
C didn't notice this with standard warnings enabled, but C++ takes vengeance, so cast appropriately.
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 324cfa1092..4e37b6c94e 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -9682,7 +9682,7 @@ vms_image_init(int *argcp, char ***argvp)
tabvec[tabidx]->dsc$w_length = len;
tabvec[tabidx]->dsc$b_dtype = DSC$K_DTYPE_T;
tabvec[tabidx]->dsc$b_class = DSC$K_CLASS_S;
- tabvec[tabidx]->dsc$a_pointer = PerlMem_malloc(len + 1);
+ tabvec[tabidx]->dsc$a_pointer = (char *)PerlMem_malloc(len + 1);
if (tabvec[tabidx]->dsc$a_pointer == NULL) _ckvmssts_noperl(SS$_INSFMEM);
my_strlcpy(tabvec[tabidx]->dsc$a_pointer, eqv, len + 1);
}