Cast following 22831cc58.
authorCraig A. Berry <craigberry@mac.com>
Wed, 11 Jul 2012 12:10:26 +0000 (07:10 -0500)
committerCraig A. Berry <craigberry@mac.com>
Wed, 11 Jul 2012 12:14:00 +0000 (07:14 -0500)
C++ insists on casting the return values of the malloc family.

vms/vms.c

index 9777802..a8e42c4 100644 (file)
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -10507,7 +10507,7 @@ setup_cmddsc(pTHX_ const char *incmd, int check_img, int *suggest_quote,
 
     /* Expand the command buffer if necessary. */
     if (clen > cmdlen) {
-      cmd = PerlMem_realloc(cmd, clen);
+      cmd = (char *)PerlMem_realloc(cmd, clen);
       if (cmd == NULL)
         _ckvmssts_noperl(SS$_INSFMEM);
       /* Where we are may have changed, so recompute offsets */