From 63cba99d7e97ad4ade0339904b202dcce91c7974 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 21 Jul 2013 20:10:34 +0300 Subject: [PATCH] Fix democlient compilation under MSYS. --- democlient/democlient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/democlient/democlient.cpp b/democlient/democlient.cpp index 579f2fa50..1643e46c4 100644 --- a/democlient/democlient.cpp +++ b/democlient/democlient.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #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};