From: Nicholas Clark Date: Sat, 20 May 2006 10:27:23 +0000 (+0000) Subject: Solaris was happy, but change 28247 removed the wrong dTHX as far as X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ff9a42beba9f4156f50b64fd80480645efd8c5a;p=p5sagit%2Fp5-mst-13.2.git Solaris was happy, but change 28247 removed the wrong dTHX as far as some other operating systems were concerned. p4raw-id: //depot/perl@28249 --- diff --git a/perlio.c b/perlio.c index d2c96ad..f883fe9 100644 --- a/perlio.c +++ b/perlio.c @@ -5142,10 +5142,10 @@ 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(aTHX_ "panic: my_vsnprintf overflow in PerlIO_vsprintf\n"); } #endif