From a6592ed69033f51cb41f4736034715a7f1e7f699 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 19 Jun 2013 11:37:26 -0700 Subject: sesman: fix for reading pid file --- sesman/sesman.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sesman/sesman.c') diff --git a/sesman/sesman.c b/sesman/sesman.c index 4a294a5e..72561cae 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -202,6 +202,7 @@ main(int argc, char **argv) return 1; } + g_memset(pid_s, 0, sizeof(pid_s)); error = g_file_read(fd, pid_s, 7); if (-1 == error) -- cgit v1.2.1 From c20b447f21944fcb0dd13fe300c6bdcb781188be Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 19 Jun 2013 11:43:24 -0700 Subject: sesman: pid string match xrdp length --- sesman/sesman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sesman/sesman.c') diff --git a/sesman/sesman.c b/sesman/sesman.c index 72561cae..83db5961 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -143,7 +143,7 @@ main(int argc, char **argv) enum logReturns error; int daemon = 1; int pid; - char pid_s[8]; + char pid_s[32]; char text[256]; char pid_file[256]; char cfg_file[256]; @@ -203,7 +203,7 @@ main(int argc, char **argv) } g_memset(pid_s, 0, sizeof(pid_s)); - error = g_file_read(fd, pid_s, 7); + error = g_file_read(fd, pid_s, 31); if (-1 == error) { -- cgit v1.2.1