summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2018-02-05 02:15:06 +0100
committerDirk Engling <erdgeist@erdgeist.org>2018-02-05 02:15:06 +0100
commit35227d3937eacce73d0deaaa5239b0602555fe45 (patch)
tree46faab3e942d85fa65a6e2f82df468bad6e709a2
parent074fb62d888bce9e7bb4cfd52dbdddf238e5d93e (diff)
Fix: Proctitle lenght was not parsed from the correct field
-rw-r--r--jaildaemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jaildaemon.c b/jaildaemon.c
index 089b16e..8efd5a2 100644
--- a/jaildaemon.c
+++ b/jaildaemon.c
@@ -680,8 +680,8 @@ int main( int argc, char **argv ) {
680 continue; 680 continue;
681 } 681 }
682 682
683 task.m_proctitle = g_ipc_packet_int[4] ? ++text_off : 0; 683 task.m_proctitle = g_ipc_packet_int[5] ? ++text_off : 0;
684 text_off += g_ipc_packet_int[4]; 684 text_off += g_ipc_packet_int[5];
685 685
686 /* Sanity check on string length, expect terminator */ 686 /* Sanity check on string length, expect terminator */
687 if( text_off > (char *)(g_ipc_packet + IPC_PACKETSIZE) || 687 if( text_off > (char *)(g_ipc_packet + IPC_PACKETSIZE) ||