Permission is granted to copy, distribute and/or modify
this document under the terms of the GNU Free
diff --git a/doc/reference/version.xml b/doc/reference/version.xml
index 559bb8d9..0b6e6269 100644
--- a/doc/reference/version.xml
+++ b/doc/reference/version.xml
@@ -1,4 +1,4 @@
-2.41.2
+2.41.3
diff --git a/doc/stamp-vti b/doc/stamp-vti
index 499255fd..ccef0cb7 100644
--- a/doc/stamp-vti
+++ b/doc/stamp-vti
@@ -1,4 +1,4 @@
@set UPDATED 27 November 2016
@set UPDATED-MONTH November 2016
-@set EDITION 2.41.2
-@set VERSION 2.41.2
+@set EDITION 2.41.3
+@set VERSION 2.41.3
diff --git a/doc/version.texi b/doc/version.texi
index 499255fd..ccef0cb7 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,4 +1,4 @@
@set UPDATED 27 November 2016
@set UPDATED-MONTH November 2016
-@set EDITION 2.41.2
-@set VERSION 2.41.2
+@set EDITION 2.41.3
+@set VERSION 2.41.3
diff --git a/libgtop.spec b/libgtop.spec
index 5807fae0..07869f7a 100644
--- a/libgtop.spec
+++ b/libgtop.spec
@@ -1,5 +1,5 @@
# Note that this is NOT a relocatable package
-%define ver 2.41.2
+%define ver 2.41.3
%define RELEASE SNAP
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix /usr
diff --git a/libgtopconfig.h b/libgtopconfig.h
index fdcca1e9..642aed57 100644
--- a/libgtopconfig.h
+++ b/libgtopconfig.h
@@ -3,6 +3,6 @@
#define LIBGTOP_MAJOR_VERSION 2
#define LIBGTOP_MINOR_VERSION 41
-#define LIBGTOP_MICRO_VERSION 2
+#define LIBGTOP_MICRO_VERSION 3
#endif /* LIBGTOPCONFIG_H */
diff --git a/po/tr.gmo b/po/tr.gmo
index 570308d6..688030ef 100644
Binary files a/po/tr.gmo and b/po/tr.gmo differ
diff --git a/po/tr.po b/po/tr.po
index 2d1de2e9..0dbddbe1 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -12,16 +12,16 @@ msgid ""
msgstr ""
"Project-Id-Version: libgtop\n"
"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libgtop/issues\n"
-"POT-Creation-Date: 2023-01-25 20:47+0000\n"
-"PO-Revision-Date: 2017-09-05 07:33+0300\n"
-"Last-Translator: Emin Tufan Çetin \n"
+"POT-Creation-Date: 2023-08-08 10:47+0000\n"
+"PO-Revision-Date: 2023-10-24 02:11+0300\n"
+"Last-Translator: Sabri Ünal \n"
"Language-Team: Türkçe \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Gtranslator 2.91.7\n"
+"X-Generator: Poedit 3.4\n"
#: lib/read.c:49
#, c-format
@@ -106,7 +106,7 @@ msgstr "Öldür"
#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
msgid "Bus error"
-msgstr "Veriyolu hatası"
+msgstr "Veri yolu hatası"
#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
msgid "Segmentation violation"
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 47a94586..58a61412 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -61,25 +61,31 @@ handle_parent_connection (int s)
"Parent (%d) received command %lu from client.",
getpid (), cmnd->command);
- if (cmnd->data_size >= BUFSIZ) {
- syslog_message (LOG_WARNING,
- "Client sent %lu bytes, but buffer is %lu",
- cmnd->data_size, (unsigned long)BUFSIZ);
- return;
- }
-
memset (resp, 0, sizeof (glibtop_response));
memset (parameter, 0, sizeof (parameter));
if (cmnd->data_size) {
+ if (cmnd->data_size >= BUFSIZ) {
+ syslog_message (LOG_WARNING,
+ "Client sent %lu bytes, but buffer is %lu",
+ cmnd->data_size, (unsigned long)BUFSIZ);
+ return;
+ }
+
if (enable_debug)
syslog_message (LOG_DEBUG, "Client has %lu bytes of data.",
cmnd->data_size);
do_read (s, parameter, cmnd->data_size);
-
} else if (cmnd->size) {
+ if (cmnd->size >= BUFSIZ) {
+ syslog_message (LOG_WARNING,
+ "Client sent %lu bytes, but buffer is %lu",
+ cmnd->size, (unsigned long)BUFSIZ);
+ return;
+ }
+
memcpy (parameter, cmnd->parameter, cmnd->size);
}
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 80b2b5ab..25bd19e7 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -44,22 +44,26 @@ handle_slave_connection (int input, int output)
glibtop_debug ("Slave %d received command "
"%lu from client.", getpid (), cmnd->command);
- if (cmnd->data_size >= BUFSIZ)
- glibtop_error ("Client sent %lu bytes, "
- "but buffer is %lu",
- cmnd->size, (unsigned long)BUFSIZ);
-
memset (resp, 0, sizeof (glibtop_response));
memset (parameter, 0, sizeof (parameter));
if (cmnd->data_size) {
+ if (cmnd->data_size >= BUFSIZ)
+ glibtop_error ("Client sent %lu bytes, "
+ "but buffer is %lu",
+ cmnd->data_size, (unsigned long)BUFSIZ);
+
glibtop_debug ("Client has %lu bytes of data.",
cmnd->data_size);
do_read (input, parameter, cmnd->data_size);
-
} else if (cmnd->size) {
+ if (cmnd->size >= BUFSIZ)
+ glibtop_error ("Client sent %lu bytes, "
+ "but buffer is %lu",
+ cmnd->size, (unsigned long)BUFSIZ);
+
memcpy (parameter, cmnd->parameter, cmnd->size);
}