diff options
author | Craig A. Berry <craigberry@mac.com> | 2014-06-05 15:42:34 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2014-06-05 15:42:34 -0500 |
commit | 4f119521f5464017c974c13638b5f9f1fc4af265 (patch) | |
tree | 5762d114f2ce4713059d5900f9d97be4a850643c /vms | |
parent | bdcba584fd26e9a07f5d2d13db3b11fafca6bffe (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |