From e158255de5b7513aec5b27bfadea978c0307fe9a Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 18 Dec 2010 16:00:11 +0200 Subject: [PATCH] =?utf8?q?=D0=92=20=D1=83=D1=82=D0=B8=D0=BB=D1=96=D1=82?= =?utf8?q?=D1=96=20sgconf=5Fxml=20=D1=81=D0=BF=D1=80=D0=BE=D1=89=D0=B5?= =?utf8?q?=D0=BD=D0=B5=20=D0=B6=D1=83=D1=80=D0=BD=D0=B0=D0=BB=D1=8E=D0=B2?= =?utf8?q?=D0=B0=D0=BD=D0=BD=D1=8F=20=D0=BF=D0=BE=D0=BC=D0=B8=D0=BB=D0=BE?= =?utf8?q?=D0=BA=20=D1=82=D0=B0=20=D0=B2=D0=B8=D0=BF=D1=80=D0=B0=D0=B2?= =?utf8?q?=D0=BB=D0=B5=D0=BD=D1=96=20=D0=BF=D0=BE=D0=BC=D0=B8=D0=BB=D0=BA?= =?utf8?q?=D0=B8=20=D0=BA=D0=BE=D0=BC=D0=BF=D1=96=D0=BB=D1=8F=D1=86=D1=96?= =?utf8?q?=D1=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/sgconf_xml/main.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/projects/sgconf_xml/main.cpp b/projects/sgconf_xml/main.cpp index 751a7537..7f2ed761 100644 --- a/projects/sgconf_xml/main.cpp +++ b/projects/sgconf_xml/main.cpp @@ -135,7 +135,6 @@ if (!req->strReq.res_empty()) //----------------------------------------------------------------------------- int Process(REQUEST * r) { -char errorMsg[MAX_ERR_STR_LEN]; int ret; char str[2048]; @@ -150,20 +149,17 @@ CreateRequest(r, str); if ((ret = nt.Connect()) != st_ok) { - strncpy(errorMsg, nt.GetError(), MAX_ERR_STR_LEN); - printf("%s", errorMsg); + printf("%s\n", nt.GetError().c_str()); return ret; } if ((ret = nt.Transact(str)) != st_ok) { - strncpy(errorMsg, nt.GetError(), MAX_ERR_STR_LEN); - printf("%s", errorMsg); + printf("%s\n", nt.GetError().c_str()); return ret; } if ((ret = nt.Disconnect()) != st_ok) { - strncpy(errorMsg, nt.GetError(), MAX_ERR_STR_LEN); - printf("%s", errorMsg); + printf("%s\n", nt.GetError().c_str()); return ret; } -- 2.44.2