X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fperl.c;h=5239f3d513943cc94ed3716f2302f02fa9e3ab94;hb=0e8aed8aab2d2b68d1f6e6b0b2985de2bd6d2a73;hp=fbe9ee8427dafb49e471647ab1dac7b1c8038ea2;hpb=38d85dd18239ac5951fae2c61dcf7c037c666f00;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/perl.c b/src/src/perl.c index fbe9ee842..5239f3d51 100644 --- a/src/src/perl.c +++ b/src/src/perl.c @@ -3,6 +3,7 @@ *************************************************/ /* Copyright (c) 1998 Malcolm Beattie */ +/* Copyright (C) 1999 - 2018 Exim maintainers */ /* Modified by PH to get rid of the "na" usage, March 1999. Modified further by PH for general tidying for Exim 4. @@ -60,7 +61,7 @@ XS(xs_expand_string) str = expand_string(US SvPV(ST(0), len)); ST(0) = sv_newmortal(); if (str != NULL) - sv_setpv(ST(0), (const char *) str); + sv_setpv(ST(0), CCS str); else if (!expand_string_forcedfail) croak("syntax error in Exim::expand_string argument: %s", expand_string_message); @@ -150,9 +151,8 @@ cleanup_perl(void) interp_perl = 0; } -uschar * -call_perl_cat(uschar *yield, int *sizep, int *ptrp, uschar **errstrp, - uschar *name, uschar **arg) +gstring * +call_perl_cat(gstring * yield, uschar **errstrp, uschar *name, uschar **arg) { dSP; SV *sv; @@ -186,7 +186,7 @@ call_perl_cat(uschar *yield, int *sizep, int *ptrp, uschar **errstrp, return NULL; } str = US SvPV(sv, len); - yield = string_cat(yield, sizep, ptrp, str, (int)len); + yield = string_catn(yield, str, (int)len); FREETMPS; LEAVE;