Fix democlient compilation under MSYS.

This commit is contained in:
XhmikosR 2013-07-21 20:10:34 +03:00 committed by Daniel Marjamäki
parent 011fd3bed9
commit 63cba99d7e
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include <ctime>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include "cppcheck.h"
@ -75,7 +76,7 @@ int main()
fgets(data, len, stdin);
} else {
const char *s = getenv("QUERY_STRING");
strncpy(data, s?s:"", sizeof(data)-2);
std::strncpy(data, s?s:"", sizeof(data)-2);
}
char code[4096] = {0};