summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-02-25 10:37:16 +0000
committerramon <ramongomez@us.es>2013-02-25 10:37:16 +0000
commit3a254b9cd255bd1ddcac95978ce328de78b33d32 (patch)
treeb32b67e4a72da39531bca2e0a8f646ca45b29d9d
parent12a35e72b2686ceca6a79daf7a277d27e8409937 (diff)
#579: Corregir fallos al comparar tamaƱos de cadenas.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3630 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r--admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c b/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c
index f49c92d0..a927b54c 100644
--- a/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c
+++ b/admin/Sources/Clients/ogAdmClient/sources/ogAdmClient.c
@@ -274,7 +274,7 @@ int interfaceAdmin( char *script,char* parametros,char* salida)
}
else
{
- strncat (msglog, argumentos[i], strlen (argumentos[i]) - 4);
+ strncat (msglog, argumentos[i], LONSUC - lon - 4);
strcat (msglog, "...");
}
infoDebug(msglog);
@@ -350,7 +350,7 @@ int interfaceAdmin( char *script,char* parametros,char* salida)
}
else
{
- strncat (msglog, salida, strlen (salida) - 4);
+ strncat (msglog, salida, LONSUC - -lon - 4);
strcat (msglog, "...");
}
infoDebug(msglog);
@@ -553,7 +553,7 @@ BOOLEAN inclusionCliente(TRAMA* ptrTrama)
}
else
{
- strncat (msglog, cfg, strlen (cfg) - 4);
+ strncat (msglog, cfg, LONSUC - lon - 4);
strcat (msglog, "...");
}
infoDebug(msglog);