git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix non-standard port number for cap_nf settings
[stg.git]
/
projects
/
sgconf_xml
/
main.cpp
diff --git
a/projects/sgconf_xml/main.cpp
b/projects/sgconf_xml/main.cpp
index 751a7537bbe32a022923af8be4ac9e025ea84804..7f2ed76193eca3e3501176701b37dfee6707b636 100644
(file)
--- 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)
{
//-----------------------------------------------------------------------------
int Process(REQUEST * r)
{
-char errorMsg[MAX_ERR_STR_LEN];
int ret;
char str[2048];
int ret;
char str[2048];
@@
-150,20
+149,17
@@
CreateRequest(r, str);
if ((ret = nt.Connect()) != st_ok)
{
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)
{
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)
{
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;
}
return ret;
}