summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/daemon/dlt_daemon_client.c2
-rwxr-xr-xsrc/shared/dlt_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c
index 00ad5b9..6fde373 100644
--- a/src/daemon/dlt_daemon_client.c
+++ b/src/daemon/dlt_daemon_client.c
@@ -299,7 +299,7 @@ int dlt_daemon_client_process_control(int sock, DltDaemon *daemon, DltDaemonLoca
id_tmp = *((uint32_t*)(msg->databuffer));
id=DLT_ENDIAN_GET_32(msg->standardheader->htyp ,id_tmp);
- if ((id > 0) && (id <= DLT_SERVICE_ID_MESSAGE_BUFFER_OVERFLOW))
+ if ((id > 0) && (id < DLT_SERVICE_ID_LAST_ENTRY))
{
/* Control message handling */
switch (id)
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 194f548..dce48c6 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -953,7 +953,7 @@ int dlt_message_payload(DltMessage *msg,char *text,int textlength,int type,int v
/* process message id / service id */
if (DLT_MSG_IS_CONTROL(msg))
{
- if (id > 0 && id <= DLT_SERVICE_ID_MESSAGE_BUFFER_OVERFLOW)
+ if (id > 0 && id < DLT_SERVICE_ID_LAST_ENTRY)
{
snprintf(text+strlen(text),textlength-strlen(text),"%s",service_id[id]); /* service id */
}