Fix democlient compilation under MSYS.
This commit is contained in:
parent
011fd3bed9
commit
63cba99d7e
|
@ -1,6 +1,7 @@
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
#include "cppcheck.h"
|
#include "cppcheck.h"
|
||||||
|
@ -75,7 +76,7 @@ int main()
|
||||||
fgets(data, len, stdin);
|
fgets(data, len, stdin);
|
||||||
} else {
|
} else {
|
||||||
const char *s = getenv("QUERY_STRING");
|
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};
|
char code[4096] = {0};
|
||||||
|
|
Loading…
Reference in New Issue