(svn r26764) -Fix: Buffer overrun in SQCompiler::Error. (kalenz)

pull/155/head
frosch 10 years ago
parent 12a6d877a6
commit 44fabee8ca

@ -66,7 +66,7 @@ public:
static SQChar temp[256]; static SQChar temp[256];
va_list vl; va_list vl;
va_start(vl, s); va_start(vl, s);
scvsprintf(temp, s, vl); scvsnprintf(temp, sizeof(temp), s, vl);
va_end(vl); va_end(vl);
throw temp; throw temp;
} }

Loading…
Cancel
Save