p4raw-id: //depot/perl@28247
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;