Commit 17eef4d8 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #8596 from nnorwitz:nnorwitz

parents e60535d3 256b6bb3
......@@ -859,9 +859,10 @@ void error( const Exception& exc )
else
{
const char* errorStr = cvErrorStr(exc.code);
char buf[1 << 16];
char buf[1 << 12];
sprintf( buf, "OpenCV Error: %s (%s) in %s, file %s, line %d",
snprintf( buf, sizeof(buf),
"OpenCV Error: %s (%s) in %s, file %s, line %d",
errorStr, exc.err.c_str(), exc.func.size() > 0 ?
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
fprintf( stderr, "%s\n", buf );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment