From: Nicholas Clark Date: Fri, 19 May 2006 22:48:38 +0000 (+0000) Subject: Perl_croak() needs an aTHX_ in PerlIO_vsprintf(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=37405f9009219de703848fda95b3f821e51fda4d;p=p5sagit%2Fp5-mst-13.2.git Perl_croak() needs an aTHX_ in PerlIO_vsprintf(). p4raw-id: //depot/perl@28247 --- diff --git a/perlio.c b/perlio.c index a4b7bb4..d2c96ad 100644 --- a/perlio.c +++ b/perlio.c @@ -5142,12 +5142,11 @@ vfprintf(FILE *fd, char *pat, char *args) int PerlIO_vsprintf(char *s, int n, const char *fmt, va_list ap) { - dTHX; const int val = my_vsnprintf(s, n > 0 ? n : 0, fmt, ap); #ifndef PERL_MY_VSNPRINTF_GUARDED if (val < 0 || (n > 0 ? val >= n : 0)) { dTHX; - Perl_croak("panic: my_vsnprintf overflow in PerlIO_vsprintf\n"); + Perl_croak(aTHX_ "panic: my_vsnprintf overflow in PerlIO_vsprintf\n"); } #endif return val;