Thanks to Meang Akira Tanaka for suggestion and initial implementation of\r
the statuscode command.\r
Thanks to Kirill Kovalenko for reporting a crash with NANO server.\r
+Thanks to Connor Reynolds for spotting a potential buffer overflow.\r
\r
Licence\r
-------\r
va_start(arg, flags);\r
while (i = va_arg(arg, int)) {\r
TCHAR *localised = message_string(i);\r
- _sntprintf_s((TCHAR *) ofn.lpstrFilter + len, bufsize, _TRUNCATE, localised);\r
+ _sntprintf_s((TCHAR *) ofn.lpstrFilter + len, bufsize - len, _TRUNCATE, localised);\r
len += _tcslen(localised) + 1;\r
LocalFree(localised);\r
TCHAR *filter = browse_filter(i);\r